diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 7c96ac3763fdb754724464efe4b70ca8ff243ec0..1e4522dc85da40011edc71d5369c405615f0a3d8 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, 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 <netinet/in.h> #endif -#ifdef _XOPEN_SOURCE_EXTENDED -/* This define is "almost" required to build on HPUX 11 */ +#ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> #endif #ifdef HAVE_NETDB_H diff --git a/tests/server/sws.c b/tests/server/sws.c index 5e3f3abc544504e970638113d1c3ee377a496da2..dee1b9db6f8a9cdef4f28b206adc72204ac990de 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, 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 <netinet/in.h> #endif -#ifdef _XOPEN_SOURCE_EXTENDED -/* This define is "almost" required to build on HPUX 11 */ +#ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> #endif #ifdef HAVE_NETDB_H diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index fce36575865dc3877efabd30bb89f4117607a22f..6dcd89409e57803b27eb66803ac87aac44f1c296 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -65,6 +65,9 @@ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif +#ifdef HAVE_ARPA_INET_H +#include <arpa/inet.h> +#endif #ifdef HAVE_ARPA_TFTP_H #include <arpa/tftp.h> #else