diff options
author | Andreas Schneider <asn@samba.org> | 2018-11-21 11:38:24 +0100 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2018-11-29 02:20:48 +0100 |
commit | dbbf978ae062b49504d257a5e8c247c7f135d4db (patch) | |
tree | 2ad14e07363263113f1392f72ca4af971e42dc2e /source4 | |
parent | 342c3b7dae269645a7629719ad6c1948f2e0e09e (diff) | |
download | samba-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.c | 2 | ||||
-rw-r--r-- | source4/torture/smb2/oplock.c | 2 | ||||
-rw-r--r-- | source4/torture/smbtorture.c | 2 |
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 |