s3:libsmb: Use #ifdef instead of #if for config.h definitions
authorAndreas Schneider <asn@samba.org>
Tue, 20 Nov 2018 14:53:23 +0000 (15:53 +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/libsmb/libsmb_stat.c
source3/libsmb/pylibsmb.c

index 4191ad6d2154ff5422e2123b148b9edec19004ec..f8b35bdb9eac83719dcad86f396e9686d130c05e 100644 (file)
@@ -412,7 +412,7 @@ SMBC_fstatvfs_ctx(SMBCCTX *context,
                         /* ... then provide it */
                         st->f_bsize =
                                 (unsigned long) bytes_per_sector;
-#if HAVE_FRSIZE
+#ifdef HAVE_FRSIZE
                         st->f_frsize =
                                 (unsigned long) sectors_per_allocation_unit;
 #endif
@@ -459,7 +459,7 @@ SMBC_fstatvfs_ctx(SMBCCTX *context,
                                 (fsfilcnt_t) total_file_nodes;
                         st->f_ffree =
                                 (fsfilcnt_t) free_file_nodes;
-#if HAVE_FSID_INT
+#ifdef HAVE_FSID_INT
                         st->f_fsid =
                                 (unsigned long) fs_identifier;
 #endif
@@ -489,9 +489,9 @@ SMBC_fstatvfs_ctx(SMBCCTX *context,
                 flags |= SMBC_VFS_FEATURE_DFS;
         }
 
-#if HAVE_STATVFS_F_FLAG
+#if defined(HAVE_STATVFS_F_FLAG)
         st->f_flag = flags;
-#elif HAVE_STATVFS_F_FLAGS
+#elif defined(HAVE_STATVFS_F_FLAGS)
         st->f_flags = flags;
 #endif
 
index 311820c7d66755288b309fb58c36228040443687..99e5587cae7dcaaa50d9a385e0b06878fbf19009 100644 (file)
@@ -88,7 +88,7 @@ struct py_cli_state {
        struct py_tevent_cond *oplock_cond;
 };
 
-#if HAVE_PTHREAD
+#ifdef HAVE_PTHREAD
 
 #include <pthread.h>