From 4dffc10f0821a8aa1e789a8831fa998530ad7fdc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 4 Oct 2005 15:51:20 +0000 Subject: Merge from gnulib. Include sys/types.h before other headers. --- lib/getaddrinfo.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/getaddrinfo.h b/lib/getaddrinfo.h index 8b2d9bcc1..087d3d579 100644 --- a/lib/getaddrinfo.h +++ b/lib/getaddrinfo.h @@ -20,6 +20,12 @@ # define GETADDRINFO_H /* Get all getaddrinfo related declarations, if available. */ + +/* 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 # ifdef HAVE_SYS_SOCKET_H # include # endif @@ -29,12 +35,6 @@ # ifndef HAVE_STRUCT_ADDRINFO -/* Get 'socklen_t', and 'struct sockaddr' via sys/types.h which are - used below. */ -# ifdef HAVE_SYS_TYPES_H -# include -# endif - /* Structure to contain information about address of a service provider. */ struct addrinfo { -- cgit v1.2.3-70-g09d2