From af41fb79b5318c74d8ce33079dcbb2f6d6c417fd Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 27 Apr 2009 23:59:41 +0000 Subject: [PATCH] Include if HAVE_ARPA_INET_H is defined --- tests/server/sockfilt.c | 5 ++--- tests/server/sws.c | 5 ++--- tests/server/tftpd.c | 3 +++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 7c96ac376..1e4522dc8 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2009, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -94,8 +94,7 @@ #ifdef HAVE_NETINET_IN_H #include #endif -#ifdef _XOPEN_SOURCE_EXTENDED -/* This define is "almost" required to build on HPUX 11 */ +#ifdef HAVE_ARPA_INET_H #include #endif #ifdef HAVE_NETDB_H diff --git a/tests/server/sws.c b/tests/server/sws.c index 5e3f3abc5..dee1b9db6 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2009, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -41,8 +41,7 @@ #ifdef HAVE_NETINET_IN_H #include #endif -#ifdef _XOPEN_SOURCE_EXTENDED -/* This define is "almost" required to build on HPUX 11 */ +#ifdef HAVE_ARPA_INET_H #include #endif #ifdef HAVE_NETDB_H diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index fce365758..6dcd89409 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -65,6 +65,9 @@ #ifdef HAVE_NETINET_IN_H #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif #ifdef HAVE_ARPA_TFTP_H #include #else