]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Rename old regex.h (BSD re_comp) to compat_regex.h to support new regex(3) code.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 19 Aug 1998 18:58:16 +0000 (18:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 19 Aug 1998 18:58:16 +0000 (18:58 +0000)
FreeBSD has re_comp in -lcompat.
Use of re_comp/exec for all platforms should be depreciated completely.

include/compat_regex.h [moved from include/regex.h with 100% similarity]
include/portable.h

similarity index 100%
rename from include/regex.h
rename to include/compat_regex.h
index a91b27a5d554e0e53fb682a021d43b76ca74e849..8d08f6feff41d1a5c1859db1bbb787dd4fab44e9 100644 (file)
@@ -61,9 +61,9 @@
 #endif
 
 /*
- * on many systems, we should use waitpid() instead of waitN()
+ * on most systems, we should use waitpid() instead of waitN()
  */
-#if !defined( USE_WAITPID ) && ( defined( SYSV ) || defined( sunos4 ) || defined( ultrix ) || defined( aix ))
+#if !defined( USE_WAITPID ) && !defined( nextstep )
 #define USE_WAITPID
 #endif
 
  * some systems don't have the BSD re_comp and re_exec routines
  */
 #ifndef NEED_BSDREGEX
-#if defined( SYSV ) || defined( VMS ) || defined( netbsd ) || defined( freebsd ) || defined( linux )
+#if defined( SYSV ) || defined( VMS ) || defined( netbsd ) || defined( linux )
 #define NEED_BSDREGEX
 #endif
 #endif
  * Are sys_errlist and sys_nerr declared in stdio.h?
  */
 #ifndef SYSERRLIST_IN_STDIO
-#if defined( freebsd ) 
+#if defined( freebsd ) || defined( __GLIBC__ ) && ( __GLIBC__ > 1 )
 #define SYSERRLIST_IN_STDIO
 #endif
 #endif
  * call signal or sigset (signal does not block the signal while
  * in the handler on sys v and sigset does not exist on bsd)
  */
-#ifdef SYSV
+#if defined(SYSV) && !defined(linux)
 #define SIGNAL sigset
 #else
 #define SIGNAL signal