]> git.sur5r.net Git - openldap/blobdiff - include/portable.h
Add NO_THREADS fix from tih@nhh.no
[openldap] / include / portable.h
index b64be6c79c26ad8a931560ed008e35ffedd7db16..1f082a4f9b746d9a5fc15f2662b1197cc150c0f5 100644 (file)
 #define OPENLOG_OPTIONS                ( LOG_PID | LOG_NOWAIT )
 #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 )
-#define NEED_BSDREGEX
-#endif
-#endif
-
 /*
  * many systems do not have the setpwfile() library routine... we just
  * enable use for those systems we know have it.
  * Are sys_errlist and sys_nerr declared in stdio.h?
  */
 #ifndef SYSERRLIST_IN_STDIO
-#if defined( freebsd ) 
+#if defined( freebsd ) || defined( netbsd ) || \
+       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