]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:lib: Use #ifdef instead of #if for config.h definitions
authorAndreas Schneider <asn@samba.org>
Tue, 20 Nov 2018 13:12:49 +0000 (14:12 +0100)
committerGary Lockyer <gary@samba.org>
Wed, 28 Nov 2018 22:19:23 +0000 (23:19 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/lib/addrchange.c
source3/lib/system.c

index 9a628f7f6c2720edd22a093a00f4d24eaf3f08d2..719b8702789025bdf2b86c03fd70a60458e690cf 100644 (file)
@@ -20,7 +20,7 @@
 #include "lib/addrchange.h"
 #include "../lib/util/tevent_ntstatus.h"
 
-#if HAVE_LINUX_RTNETLINK_H
+#ifdef HAVE_LINUX_RTNETLINK_H
 
 #include "asm/types.h"
 #include "linux/netlink.h"
index 507d4a9af93a824c8e9c2ae96088dc7afd021560..00dd21ccbd60e6b89e2f0a3fa959f290b7a6fea3 100644 (file)
@@ -509,7 +509,7 @@ int sys_fallocate(int fd, uint32_t mode, off_t offset, off_t len)
 #endif /* HAVE_LINUX_FALLOCATE */
 }
 
-#if HAVE_KERNEL_SHARE_MODES
+#ifdef HAVE_KERNEL_SHARE_MODES
 #ifndef LOCK_MAND
 #define LOCK_MAND      32      /* This is a mandatory flock */
 #define LOCK_READ      64      /* ... Which allows concurrent read operations */
@@ -524,7 +524,7 @@ int sys_fallocate(int fd, uint32_t mode, off_t offset, off_t len)
 
 void kernel_flock(int fd, uint32_t share_mode, uint32_t access_mask)
 {
-#if HAVE_KERNEL_SHARE_MODES
+#ifdef HAVE_KERNEL_SHARE_MODES
        int kernel_mode = 0;
        if (share_mode == FILE_SHARE_WRITE) {
                kernel_mode = LOCK_MAND|LOCK_WRITE;