From 62f66280328dc39f3c568281ecd46015fb84a344 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 5 Oct 2005 07:39:50 +0000 Subject: [PATCH] Don't protect sys/types.h with HAVE_SYS_TYPES_H, we assume all systems have it, suggested by Jim Meyering . --- lib/ChangeLog | 6 ++++++ lib/getaddrinfo.h | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index c490d5bf46..f8e08a992a 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2005-10-05 Simon Josefsson + + * getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H, + we assume all systems have it, suggested by Jim Meyering + . + 2005-10-04 Bruno Haible * verify.h (verify_true): Provide alternative definition for C++. diff --git a/lib/getaddrinfo.h b/lib/getaddrinfo.h index 01d681f188..9f47447d30 100644 --- a/lib/getaddrinfo.h +++ b/lib/getaddrinfo.h @@ -19,14 +19,12 @@ #ifndef GETADDRINFO_H # define GETADDRINFO_H -/* Get all getaddrinfo related declarations, if available. */ -# ifdef HAVE_SYS_TYPES_H /* sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 require sys/types.h, so include it first. Then we'll also get 'socklen_t' and 'struct sockaddr' which are used below. */ -# include -# endif +# include +/* Get all getaddrinfo related declarations, if available. */ # ifdef HAVE_SYS_SOCKET_H # include # endif -- 2.30.2