Commit f32239e8 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Added more tests and fixed mismatched ifdefs.

parent 39aa7085
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment