X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fportable.h;h=1f082a4f9b746d9a5fc15f2662b1197cc150c0f5;hb=7963420cdefc8e37e15b69873819d108eccdc2ac;hp=b64be6c79c26ad8a931560ed008e35ffedd7db16;hpb=860038cff14e03dc74ada45e030e6161ba5d2a0d;p=openldap diff --git a/include/portable.h b/include/portable.h index b64be6c79c..1f082a4f9b 100644 --- a/include/portable.h +++ b/include/portable.h @@ -96,16 +96,6 @@ #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. @@ -120,7 +110,8 @@ * 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 @@ -170,7 +161,7 @@ * 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