replace: Fix checking for config.h #define in gssapi.h
authorAndreas Schneider <asn@samba.org>
Thu, 13 Dec 2018 17:46:38 +0000 (18:46 +0100)
committerGary Lockyer <gary@samba.org>
Sun, 16 Dec 2018 20:04:09 +0000 (21:04 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/replace/system/gssapi.h

index 9e68dcc..d8632d7 100644 (file)
 
 #ifdef HAVE_GSSAPI_GSSAPI_EXT_H
 #include <gssapi/gssapi_ext.h>
-#elif HAVE_GSSAPI_GSSAPI_H
+#elif defined(HAVE_GSSAPI_GSSAPI_H)
 #include <gssapi/gssapi.h>
-#elif HAVE_GSSAPI_GSSAPI_GENERIC_H
+#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
 #include <gssapi/gssapi_generic.h>
-#elif HAVE_GSSAPI_H
+#elif defined(HAVE_GSSAPI_H)
 #include <gssapi.h>
 #endif
 
@@ -45,7 +45,7 @@
 
 #ifdef HAVE_GSSAPI_GSSAPI_SPNEGO_H
 #include <gssapi/gssapi_spnego.h>
-#elif HAVE_GSSAPI_SPNEGO_H
+#elif defined(HAVE_GSSAPI_SPNEGO_H)
 #include <gssapi_spnego.h>
 #endif