summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-21 11:38:24 +0100
committerGary Lockyer <gary@samba.org>2018-11-29 02:20:48 +0100
commitdbbf978ae062b49504d257a5e8c247c7f135d4db (patch)
tree2ad14e07363263113f1392f72ca4af971e42dc2e /source4
parent342c3b7dae269645a7629719ad6c1948f2e0e09e (diff)
downloadsamba-dbbf978ae062b49504d257a5e8c247c7f135d4db.tar.gz
s4:torture: Use #ifdef instead of #if for config.h definitions
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
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/shell.c2
-rw-r--r--source4/torture/smb2/oplock.c2
-rw-r--r--source4/torture/smbtorture.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/shell.c b/source4/torture/shell.c
index 5a4eb5c1d6a..195149a0a6a 100644
--- a/source4/torture/shell.c
+++ b/source4/torture/shell.c
@@ -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
diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c
index 8bbb641ea72..143078a37d1 100644
--- a/source4/torture/smb2/oplock.c
+++ b/source4/torture/smb2/oplock.c
@@ -4792,7 +4792,7 @@ done:
return ret;
}
-#if HAVE_KERNEL_OPLOCKS_LINUX
+#ifdef HAVE_KERNEL_OPLOCKS_LINUX
#ifndef F_SETLEASE
#define F_SETLEASE 1024
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index dcce7328647..15eb81b7fea 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -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