Make ldap.h, gssapi.h and qsossl.h inclusions conditional.
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>
Thu, 23 Aug 2007 18:46:45 +0000 (18:46 +0000)
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>
Thu, 23 Aug 2007 18:46:45 +0000 (18:46 +0000)
packages/OS400/os400sys.c

index 7464e0f..3eb0b09 100644 (file)
@@ -24,6 +24,8 @@
 
 /* OS/400 additional support. */
 
+#include "config-os400.h"      /* Not setup.h: we only need some defines. */
+
 #include <sys/types.h>
 #include <sys/socket.h>
 
 #include <netdb.h>
 #include <qadrt.h>
 #include <errno.h>
+
+#ifdef USE_QSOSSL
 #include <qsossl.h>
+#endif
+
+#ifdef HAVE_GSSAPI
 #include <gssapi.h>
+#endif
+
+#ifndef CURL_DISABLE_LDAP
 #include <ldap.h>
+#endif
 
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-#include "config-os400.h"      /* Not config.h: need only some defines. */
 #include "os400sys.h"