[PATCH 03/10] Fix compilation of smtp-dummy on FreeBSD
Mike Kelly
pioto at pioto.org
Fri May 25 06:43:24 PDT 2012
---
test/smtp-dummy.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c
index 3801a5e..aa82fa1 100644
--- a/test/smtp-dummy.c
+++ b/test/smtp-dummy.c
@@ -33,11 +33,14 @@
* have been warned.
*/
+#define _GNU_SOURCE /* for getline */
#include <stdio.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>
--
1.7.10.2
More information about the notmuch
mailing list