mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-01 14:15:49 +08:00
Added more tests and fixed mismatched ifdefs.
This commit is contained in:
parent
39aa70851a
commit
f32239e823
1
configure
vendored
1
configure
vendored
@ -4724,6 +4724,7 @@ for ac_func in \
|
||||
select \
|
||||
setpwfile \
|
||||
setsid \
|
||||
sigaction \
|
||||
signal \
|
||||
sigset \
|
||||
socket \
|
||||
|
@ -26,7 +26,8 @@
|
||||
|
||||
#ifndef SYSV
|
||||
#if defined( hpux ) || defined( sunos5 ) || defined ( sgi ) || defined( SVR4 )
|
||||
#define SYSV
|
||||
# define SYSV
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
@ -72,30 +73,36 @@
|
||||
/*
|
||||
* define the wait status argument type
|
||||
*/
|
||||
#if !defined( WAITSTATUSTYPE )
|
||||
#if !defined( HAVE_SYS_WAIT_H )
|
||||
#define WAITSTATUSTYPE union wait
|
||||
#else
|
||||
#define WAITSTATUSTYPE int
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* define the flags for wait
|
||||
*/
|
||||
#if !defined( WAIT_FLAGS )
|
||||
#ifdef sunos5
|
||||
#define WAIT_FLAGS ( WNOHANG | WUNTRACED | WCONTINUED )
|
||||
#else
|
||||
#define WAIT_FLAGS ( WNOHANG | WUNTRACED )
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* defined the options for openlog (syslog)
|
||||
*/
|
||||
#if !defined( OPENLOG_OPTIONS )
|
||||
#ifdef ultrix
|
||||
#define OPENLOG_OPTIONS LOG_PID
|
||||
#else
|
||||
#define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT )
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@ -104,7 +111,7 @@
|
||||
*/
|
||||
#ifdef NOTDEF
|
||||
#ifndef HAVE_SETPWFILE
|
||||
if defined( sunos4 ) || defined( ultrix ) || defined( __osf__ )
|
||||
#if defined( sunos4 ) || defined( ultrix ) || defined( __osf__ )
|
||||
#define HAVE_SETPWFILE
|
||||
#endif
|
||||
#endif
|
||||
@ -144,31 +151,22 @@ if defined( sunos4 ) || defined( ultrix ) || defined( __osf__ )
|
||||
/*
|
||||
* for signal() -- what do signal handling functions return?
|
||||
*/
|
||||
#ifndef SIG_FN
|
||||
#ifdef sunos5
|
||||
# define SIG_FN void /* signal-catching functions return void */
|
||||
#else /* sunos5 */
|
||||
# ifdef BSD
|
||||
# if (BSD >= 199006) || defined(NeXT) || defined(__osf__) || defined(sun) || defined(ultrix) || defined(apollo) || defined(POSIX_SIGNALS)
|
||||
# define SIG_FN void /* signal-catching functions return void */
|
||||
# else
|
||||
# define SIG_FN int /* signal-catching functions return int */
|
||||
# endif
|
||||
# else /* BSD */
|
||||
# define SIG_FN void /* signal-catching functions return void */
|
||||
# endif /* BSD */
|
||||
#endif /* sunos5 */
|
||||
#endif /* SIG_FN */
|
||||
#ifdef RETSIGTYPE
|
||||
#define SIG_FN RETSIGTYPE
|
||||
#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)
|
||||
*/
|
||||
#ifndef SIGNAL
|
||||
#ifdef HAVE_SIGSET
|
||||
#define SIGNAL sigset
|
||||
#else
|
||||
#define SIGNAL signal
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* toupper and tolower macros are different under bsd and sys v
|
||||
|
Loading…
Reference in New Issue
Block a user