1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:libsmb: 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>
This commit is contained in:
Andreas Schneider 2018-11-20 15:53:23 +01:00 committed by Gary Lockyer
parent 3f3cc42b51
commit 77b88fd059
2 changed files with 5 additions and 5 deletions

View 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

View File

@ -88,7 +88,7 @@ struct py_cli_state {
struct py_tevent_cond *oplock_cond;
};
#if HAVE_PTHREAD
#ifdef HAVE_PTHREAD
#include <pthread.h>