enable -fno-strict-aliasing until the code base gets a hefty clean up to fix all...
[platform/upstream/net-tools.git] / lib / sockets.c
index f2475f2..737a8f6 100644 (file)
@@ -51,9 +51,13 @@ int sockets_open(int family)
        if (af->af == AF_NETROM)
            type = SOCK_SEQPACKET;
 #endif
+#if HAVE_AFX25
+       if (af->af == AF_X25)
+           type = SOCK_SEQPACKET;
+#endif
        af->fd = socket(af->af, type, 0);
        if (af->fd >= 0)
-         sfd = af->fd;
+           sfd = af->fd;
     }
     if (sfd < 0)
        fprintf(stderr, _("No usable address families found.\n"));