summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2002-07-11 10:40:43 +0000
committerEric Andersen2002-07-11 10:40:43 +0000
commitcafc10323099befd1e45bb1d212a511dcbb92b11 (patch)
treee76f3490eb09eb51ff283d57d86ba698a51b2b67
parent1785ddcae20c68b248f003e30e501df09aa2a624 (diff)
downloadbusybox-cafc10323099befd1e45bb1d212a511dcbb92b11.zip
busybox-cafc10323099befd1e45bb1d212a511dcbb92b11.tar.gz
Brad Campbell <brad@seme.com.au> notes that
xconnect.c needs #include <netinet/in.h> to compile if CONFIG_FEATURE_IPV6 is not defined
-rw-r--r--libbb/xconnect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 0d670f2..d6d144f 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -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)