aboutsummaryrefslogtreecommitdiff
path: root/toynet.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-04-26 02:41:05 -0500
committerRob Landley <rob@landley.net>2013-04-26 02:41:05 -0500
commitf01534401412812bc1d904812dfb4b0a31ee8fff (patch)
treedb23ecd59e456f54cfd071eeca8806328e29b8d9 /toynet.h
parenta4a6dfb584a3de8c947d2ccf159b53bf56daebb7 (diff)
downloadtoybox-f01534401412812bc1d904812dfb4b0a31ee8fff.tar.gz
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
Diffstat (limited to 'toynet.h')
-rw-r--r--toynet.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/toynet.h b/toynet.h
index 4f87feb3..3cfb0159 100644
--- a/toynet.h
+++ b/toynet.h
@@ -2,9 +2,12 @@
// don't include network support, so we shouldn't include it unless we're
// going to build it.
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
+#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/tcp.h>
#include <poll.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+