]> git.sur5r.net Git - openldap/blobdiff - include/ac/socket.h
Import build environment changes from -devel.
[openldap] / include / ac / socket.h
index fff336918e3076c4f2ff2c65e7a66017a9870460..ad11cec8d754c9f005ac962ecef0c4de59c1a1c0 100644 (file)
 
 #include <netinet/in.h>
 #include <arpa/inet.h>
+
+#ifdef HAVE_ARPA_NAMESER_H
 #include <arpa/nameser.h>
+#endif
+
 #include <netdb.h>
+
+#ifdef HAVE_RESOLV_H
 #include <resolv.h>
 #endif
 
+#endif /* HAVE_SYS_SOCKET_H */
+
 #ifdef HAVE_WINSOCK2
 #include <winsock2.h>
 #elif HAVE_WINSOCK