mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
s3:modules: 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:
parent
77b88fd059
commit
32fda4fc64
@ -109,7 +109,7 @@
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#if HAVE_STDLIB_H
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h> /* for `free'; used by Bison 1.27 */
|
||||
#endif
|
||||
|
||||
@ -2535,7 +2535,7 @@ get_date (const char *p, const time_t *now)
|
||||
pc.local_zones_seen = 0;
|
||||
pc.zones_seen = 0;
|
||||
|
||||
#if HAVE_STRUCT_TM_TM_ZONE
|
||||
#ifdef HAVE_STRUCT_TM_TM_ZONE
|
||||
pc.local_time_zone_table[0].name = tmp->tm_zone;
|
||||
pc.local_time_zone_table[0].type = tLOCAL_ZONE;
|
||||
pc.local_time_zone_table[0].value = tmp->tm_isdst;
|
||||
@ -2563,7 +2563,7 @@ get_date (const char *p, const time_t *now)
|
||||
}
|
||||
}
|
||||
#else
|
||||
#if HAVE_TZNAME
|
||||
#ifdef HAVE_TZNAME
|
||||
{
|
||||
# ifndef tzname
|
||||
extern char *tzname[];
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#if HAVE_STDLIB_H
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h> /* for `free'; used by Bison 1.27 */
|
||||
#endif
|
||||
|
||||
@ -911,7 +911,7 @@ get_date (const char *p, const time_t *now)
|
||||
pc.local_zones_seen = 0;
|
||||
pc.zones_seen = 0;
|
||||
|
||||
#if HAVE_STRUCT_TM_TM_ZONE
|
||||
#ifdef HAVE_STRUCT_TM_TM_ZONE
|
||||
pc.local_time_zone_table[0].name = tmp->tm_zone;
|
||||
pc.local_time_zone_table[0].type = tLOCAL_ZONE;
|
||||
pc.local_time_zone_table[0].value = tmp->tm_isdst;
|
||||
@ -939,7 +939,7 @@ get_date (const char *p, const time_t *now)
|
||||
}
|
||||
}
|
||||
#else
|
||||
#if HAVE_TZNAME
|
||||
#ifdef HAVE_TZNAME
|
||||
{
|
||||
# ifndef tzname
|
||||
extern char *tzname[];
|
||||
|
@ -86,9 +86,9 @@ static int commit_do(
|
||||
("%s: flushing %lu dirty bytes\n",
|
||||
MODULE, (unsigned long)c->dbytes));
|
||||
|
||||
#if HAVE_FDATASYNC
|
||||
#if defined(HAVE_FDATASYNC)
|
||||
result = fdatasync(fd);
|
||||
#elif HAVE_FSYNC
|
||||
#elif defined(HAVE_FSYNC)
|
||||
result = fsync(fd);
|
||||
#else
|
||||
DEBUG(0, ("%s: WARNING: no commit support on this platform\n",
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "smbd/smbd.h"
|
||||
#include "nfs4_acls.h"
|
||||
|
||||
#if HAVE_FREEBSD_SUNACL_H
|
||||
#ifdef HAVE_FREEBSD_SUNACL_H
|
||||
#include "sunacl.h"
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user