cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/lib/getaddrinfo.h


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/lib/getaddrinfo.h
Date: Tue, 04 Oct 2005 11:46:33 -0400

Index: ccvs/lib/getaddrinfo.h
diff -u ccvs/lib/getaddrinfo.h:1.3 ccvs/lib/getaddrinfo.h:1.4
--- ccvs/lib/getaddrinfo.h:1.3  Tue Oct  4 02:34:53 2005
+++ ccvs/lib/getaddrinfo.h      Tue Oct  4 15:46:31 2005
@@ -20,6 +20,13 @@
 # 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 <sys/types.h>
+# endif
 # ifdef HAVE_SYS_SOCKET_H
 #  include <sys/socket.h>
 # endif
@@ -28,12 +35,6 @@
 # endif
 
 # ifndef HAVE_STRUCT_ADDRINFO
-
-/* Get 'socklen_t', and 'struct sockaddr' via sys/types.h which are
-   used below. */
-#  ifdef HAVE_SYS_TYPES_H
-#   include <sys/types.h>
-#  endif
 
 /* Structure to contain information about address of a service provider.  */
 struct addrinfo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]