mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Update ac headers from devel
This commit is contained in:
parent
398893e609
commit
73bcf38e2c
@ -16,7 +16,7 @@
|
||||
|
||||
#ifdef C_UPPER_LOWER
|
||||
# define TOUPPER(c) (islower(c) ? toupper(c) : (c))
|
||||
# define TOLOWER(c) (islower(c) ? toupper(c) : (c))
|
||||
# define TOLOWER(c) (isupper(c) ? tolower(c) : (c))
|
||||
#else
|
||||
# define TOUPPER(c) toupper(c)
|
||||
# define TOLOWER(c) tolower(c)
|
||||
|
@ -32,21 +32,25 @@
|
||||
# endif
|
||||
|
||||
# ifndef HAVE_STRRCHR
|
||||
# undef strchr
|
||||
# define strchr index
|
||||
# undef strrchr
|
||||
# define strrchr rindex
|
||||
# endif
|
||||
|
||||
# ifndef HAVE_MEMCPY
|
||||
# undef memcpy
|
||||
# define memcpy(d, s, n) ((void) bcopy ((s), (d), (n)))
|
||||
# undef memmove
|
||||
# define memmove(d, s, n) ((void) bcopy ((s), (d), (n)))
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRDUP
|
||||
/* strdup() is missing, declare our own version */
|
||||
extern char *strdup( const char *s );
|
||||
extern char *strdup LDAP_P(( const char *s ));
|
||||
#else
|
||||
/* some systems have strdup, but fail to declare it */
|
||||
/* some systems have strdup(), but fail to declare it */
|
||||
extern char *strdup();
|
||||
#endif
|
||||
|
||||
@ -67,5 +71,4 @@ extern int strcasecmp(), strncasecmp();
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _AC_STRING_H */
|
||||
|
22
include/ac/sysexits.h
Normal file
22
include/ac/sysexits.h
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Generic sysexits
|
||||
*/
|
||||
/*
|
||||
* Copyright 1999 The OpenLDAP Foundation, Redwood City, California, USA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms are permitted only
|
||||
* as authorized by the OpenLDAP Public License. A copy of this
|
||||
* license is available at http://www.OpenLDAP.org/license.html or
|
||||
* in file LICENSE in the top-level directory of the distribution.
|
||||
*/
|
||||
#ifndef _AC_SYSEXITS_H_
|
||||
#define _AC_SYSEXITS_H_
|
||||
|
||||
#ifdef HAVE_SYSEXITS_H
|
||||
# include <sysexits.h>
|
||||
#else
|
||||
# include <sysexits-compat.h>
|
||||
#endif
|
||||
|
||||
#endif /* _AC_SYSEXITS_H_ */
|
Loading…
Reference in New Issue
Block a user