diff toynet.h @ 883:aca8323e2690

Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
author Rob Landley <rob@landley.net>
date Fri, 26 Apr 2013 02:41:05 -0500
parents 4dcd5decb4fd
children
line wrap: on
line diff
--- a/toynet.h	Fri Apr 26 01:59:13 2013 -0500
+++ b/toynet.h	Fri Apr 26 02:41:05 2013 -0500
@@ -2,9 +2,12 @@
 // don't include network support, so we shouldn't include it unless we're
 // going to build it.
 
+#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>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <poll.h>
+