From: Simon Josefsson Date: Wed, 5 Oct 2005 07:39:50 +0000 (+0000) Subject: Don't protect sys/types.h with HAVE_SYS_TYPES_H, X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62f66280328dc39f3c568281ecd46015fb84a344;p=pspp Don't protect sys/types.h with HAVE_SYS_TYPES_H, we assume all systems have it, suggested by Jim Meyering . --- 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