httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject confusing HAVE_SYS_WAIT_H logic in src/include/ap_config.h
Date Wed, 17 May 2000 18:02:04 GMT
I was looking at moving the definition of ap_wait_t to APR and found
this confusing logic.  It looks like <sys/wait.h> is included whether
or not we HAVE_SYS_WAIT_H.  Is anyone familiar with this snippet of
code?

#ifdef HAVE_SYS_WAIT_H

/* We have a POSIX wait interface */
#include <sys/wait.h>
#define ap_wait_t       int

#else /* HAVE_SYS_WAIT_H */

/* We don't have a POSIX wait interface. Assume we have the old-style. Is this
 * a bad assumption? */
#include <sys/wait.h>
#define ap_wait_t       union wait
#define WEXITSTATUS(status)	(int)((status).w_retcode)
#define WTERMSIG(status)	(int)((status).w_termsig)

#endif /* HAVE_SYS_WAIT_H */



-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message