[PATCH v2 4/9] test/smtp-dummy.c: fix compilation on FreeBSD

Mike Kelly pioto at pioto.org
Wed May 30 00:01:59 PDT 2012


Use the more portable netint/in.h, instead of netint/ip.h, to include
htons(3), etc.
---
 test/smtp-dummy.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c
index 3801a5e..86d4316 100644
--- a/test/smtp-dummy.c
+++ b/test/smtp-dummy.c
@@ -37,7 +37,9 @@
 #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>
 
-- 
1.7.10.2



More information about the notmuch mailing list