diff options
author | Rob Landley <rob@landley.net> | 2013-04-26 02:41:05 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-04-26 02:41:05 -0500 |
commit | f01534401412812bc1d904812dfb4b0a31ee8fff (patch) | |
tree | db23ecd59e456f54cfd071eeca8806328e29b8d9 /toynet.h | |
parent | a4a6dfb584a3de8c947d2ccf159b53bf56daebb7 (diff) | |
download | toybox-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.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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> + |