]> diplodocus.org Git - nmh/commitdiff
IPPROTO_TCP requires <netinet/in.h>
authorLyndon Nerenberg <lyndon@orthanc.ca>
Thu, 31 Jan 2013 03:57:22 +0000 (19:57 -0800)
committerLyndon Nerenberg <lyndon@orthanc.ca>
Thu, 31 Jan 2013 03:57:22 +0000 (19:57 -0800)
At least on BSD it does.

test/fakepop.c
test/fakesmtp.c

index 389588d..bca565d 100644 (file)
@@ -13,6 +13,7 @@
 #include <netdb.h>
 #include <errno.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <sys/types.h>
 #include <sys/select.h>
 #include <sys/stat.h>
index fbfe044..7121c30 100644 (file)
@@ -13,6 +13,7 @@
 #include <netdb.h>
 #include <errno.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <sys/types.h>
 #include <sys/select.h>
 #include <sys/stat.h>