]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Update ac headers from devel
authorKurt Zeilenga <kurt@openldap.org>
Tue, 2 Mar 1999 18:44:55 +0000 (18:44 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 2 Mar 1999 18:44:55 +0000 (18:44 +0000)
include/ac/ctype.h
include/ac/string.h
include/ac/sysexits.h [new file with mode: 0644]

index b58d96fc6fddfa55926b6a8797532a713276b9d5..b5638fe97d1eb315d49407283fa7396f0615e285 100644 (file)
@@ -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)
index 7a799e0d7fb436edecc05e4e4c1d2fe4a44b85ea..b5357e4b82b212d7f0960dcfc4baa1255ac59c08 100644 (file)
 #      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 */
diff --git a/include/ac/sysexits.h b/include/ac/sysexits.h
new file mode 100644 (file)
index 0000000..91dec20
--- /dev/null
@@ -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_ */