]> git.notmuchmail.org Git - notmuch/commitdiff
test/smtp-dummy.c: fix compilation on FreeBSD
authorMike Kelly <pioto@pioto.org>
Wed, 30 May 2012 07:01:59 +0000 (03:01 -0400)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Sep 2012 02:16:18 +0000 (23:16 -0300)
Use the more portable netint/in.h, instead of netint/ip.h, to include
htons(3), etc.

test/smtp-dummy.c

index 3801a5e066c7c8fe1804ca3306e250fb0eb962f7..86d43162d9750e029b134477ff3ec1f05e101317 100644 (file)
@@ -37,7 +37,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
-#include <netinet/ip.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
 #include <netdb.h>
 #include <unistd.h>
 
 #include <netdb.h>
 #include <unistd.h>