aboutsummaryrefslogtreecommitdiff
path: root/toynet.h
diff options
context:
space:
mode:
Diffstat (limited to 'toynet.h')
-rw-r--r--toynet.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/toynet.h b/toynet.h
new file mode 100644
index 00000000..2ecda641
--- /dev/null
+++ b/toynet.h
@@ -0,0 +1,9 @@
+// Included after toys.h, for network stuff. Some build environments
+// don't include network support, so we shouldn't include it unless we're
+// going to build it.
+
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <poll.h>