mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
replace: 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
ded788bccb
commit
9f2cd92c8e
lib/replace
@ -73,7 +73,7 @@ static struct sockaddr *sockaddr_dup(struct sockaddr *sa)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAVE_IFACE_IFCONF
|
||||
#ifdef HAVE_IFACE_IFCONF
|
||||
|
||||
/* this works for Linux 2.2, Solaris 2.5, SunOS4, HPUX 10.20, OSF1
|
||||
V4.0, Ultrix 4.4, SCO Unix 3.2, IRIX 6.4 and FreeBSD 3.2.
|
||||
|
@ -25,7 +25,7 @@
|
||||
License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if HAVE_DIRENT_H
|
||||
#ifdef HAVE_DIRENT_H
|
||||
# include <dirent.h>
|
||||
# define NAMLEN(dirent) strlen((dirent)->d_name)
|
||||
#else
|
||||
@ -46,7 +46,7 @@
|
||||
#define mkdir(dir, mode) mkdir(dir)
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBGEN_H
|
||||
#ifdef HAVE_LIBGEN_H
|
||||
# include <libgen.h>
|
||||
#endif
|
||||
|
||||
|
@ -115,16 +115,16 @@
|
||||
#define VXFS_QUOTA
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_ATTRIBUTES_H
|
||||
#if defined(HAVE_SYS_ATTRIBUTES_H)
|
||||
#include <sys/attributes.h>
|
||||
#elif HAVE_ATTR_ATTRIBUTES_H
|
||||
#elif defined(HAVE_ATTR_ATTRIBUTES_H)
|
||||
#include <attr/attributes.h>
|
||||
#endif
|
||||
|
||||
/* mutually exclusive (SuSE 8.2) */
|
||||
#if HAVE_ATTR_XATTR_H
|
||||
#if defined(HAVE_ATTR_XATTR_H)
|
||||
#include <attr/xattr.h>
|
||||
#elif HAVE_SYS_XATTR_H
|
||||
#elif defined(HAVE_SYS_XATTR_H)
|
||||
#include <sys/xattr.h>
|
||||
#endif
|
||||
|
||||
|
@ -39,11 +39,11 @@
|
||||
#include <gssapi.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_GSSAPI_GSSAPI_KRB5_H
|
||||
#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H
|
||||
#include <gssapi/gssapi_krb5.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_GSSAPI_GSSAPI_SPNEGO_H
|
||||
#ifdef HAVE_GSSAPI_GSSAPI_SPNEGO_H
|
||||
#include <gssapi/gssapi_spnego.h>
|
||||
#elif HAVE_GSSAPI_SPNEGO_H
|
||||
#include <gssapi_spnego.h>
|
||||
|
@ -29,11 +29,11 @@
|
||||
|
||||
#ifdef HAVE_KRB5
|
||||
|
||||
#if HAVE_KRB5_H
|
||||
#ifdef HAVE_KRB5_H
|
||||
#include <krb5.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_COM_ERR_H
|
||||
#ifdef HAVE_COM_ERR_H
|
||||
#include <com_err.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user