From: Andreas Schneider Date: Tue, 20 Nov 2018 14:53:23 +0000 (+0100) Subject: s3:libsmb: Use #ifdef instead of #if for config.h definitions X-Git-Tag: tdb-1.3.17~554 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b88fd05939871c3e72bf52f3bbc96d38cd42c1;p=thirdparty%2Fsamba.git s3:libsmb: Use #ifdef instead of #if for config.h definitions Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c index 4191ad6d215..f8b35bdb9ea 100644 --- a/source3/libsmb/libsmb_stat.c +++ b/source3/libsmb/libsmb_stat.c @@ -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 diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index 311820c7d66..99e5587cae7 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -88,7 +88,7 @@ struct py_cli_state { struct py_tevent_cond *oplock_cond; }; -#if HAVE_PTHREAD +#ifdef HAVE_PTHREAD #include