proper includes before arpa/inet.h

This commit is contained in:
pvalchev 2003-05-27 22:54:26 +00:00
parent 7c301b1f01
commit 67b259320a
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-server_connect_c,v 1.1 2003/05/27 22:54:26 pvalchev Exp $
--- server_connect.c.orig Tue May 27 12:54:12 2003
+++ server_connect.c Tue May 27 12:54:21 2003
@@ -13,6 +13,7 @@
#include <stdio.h>
#ifndef WIN32
#include <unistd.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
#include "opennap.h"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-aclocal_m4,v 1.1 2003/05/27 22:54:26 pvalchev Exp $
--- aclocal.m4.orig Sun Dec 1 14:46:04 2002
+++ aclocal.m4 Tue May 27 15:40:56 2003
@@ -6579,6 +6579,8 @@ dnl Look for standard byte swapping macr
AC_HAVE_SYMBOL(ntohl,arpa/inet.h,
[cat >> "$1" << EOF
/* ntohl and relatives live here */
+#include <sys/types.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
EOF],