Brad Campbell <brad@seme.com.au> notes that
authorEric Andersen <andersen@codepoet.org>
Thu, 11 Jul 2002 10:40:43 +0000 (10:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 11 Jul 2002 10:40:43 +0000 (10:40 -0000)
xconnect.c needs #include <netinet/in.h>
to compile if CONFIG_FEATURE_IPV6 is not defined

libbb/xconnect.c

index 0d670f286ef0d3362b741bee30ef178006d198f8..d6d144f3f99243c2a14a4a72d523253fe1b6b534 100644 (file)
@@ -8,10 +8,11 @@
 
 #include <unistd.h>
 #include <string.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
-#include <stdlib.h>
+#include <netinet/in.h>
 #include "libbb.h"
 
 int xconnect(const char *host, const char *port)