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 9e68dcc1c8874d23959ebb09cd73863ba4ce617d..d8632d7782f1ce3d1e8f92c1b95da8ed62bd257c 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