aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mike Kelly <pioto@pioto.org>2012-05-30 03:01:59 -0400
committerGravatar David Bremner <bremner@debian.org>2012-09-01 23:16:18 -0300
commit1652ea7d1bdbf5b24b6b493f29a98f475d2d6b66 (patch)
tree426ace828771a6322465c2e950d4196ed276dea4
parent8428e0465a24858dbe0e002539607c018c9c6839 (diff)
test/smtp-dummy.c: fix compilation on FreeBSD
Use the more portable netint/in.h, instead of netint/ip.h, to include htons(3), etc.
-rw-r--r--test/smtp-dummy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c
index 3801a5e0..86d43162 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>