s4:torture: Use #ifdef instead of #if for config.h definitions
authorAndreas Schneider <asn@samba.org>
Wed, 21 Nov 2018 10:38:24 +0000 (11:38 +0100)
committerGary Lockyer <gary@samba.org>
Thu, 29 Nov 2018 01:20:48 +0000 (02:20 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Gary Lockyer <gary@samba.org>
Autobuild-Date(master): Thu Nov 29 02:20:48 CET 2018 on sn-devel-144

source4/torture/shell.c
source4/torture/smb2/oplock.c
source4/torture/smbtorture.c

index 5a4eb5c1d6a1b60482ffaf8704e5bab66ee94ef4..195149a0a6a0e7ed4d49652e320a9f93b3f6bf96 100644 (file)
@@ -119,7 +119,7 @@ void torture_shell(struct torture_context *tctx)
                if (cline == NULL)
                        return;
 
-#if HAVE_ADD_HISTORY
+#ifdef HAVE_ADD_HISTORY
                add_history(cline);
 #endif
 
index 8bbb641ea72fceee76ad086c624927ff94297419..143078a37d11ba5746afb10f13588da06dbf1c8c 100644 (file)
@@ -4792,7 +4792,7 @@ done:
        return ret;
 }
 
-#if HAVE_KERNEL_OPLOCKS_LINUX
+#ifdef HAVE_KERNEL_OPLOCKS_LINUX
 
 #ifndef F_SETLEASE
 #define F_SETLEASE      1024
index dcce7328647a763068ad1b27211a6468d725e77d..15eb81b7feaecd5e9d2626b5678f65fea40385f3 100644 (file)
@@ -34,7 +34,7 @@
 #include "param/param.h"
 #include "lib/util/samba_modules.h"
 
-#if HAVE_READLINE_HISTORY_H
+#ifdef HAVE_READLINE_HISTORY_H
 #include <readline/history.h>
 #endif