httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
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


/* 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 | | PGP public key at web site:
          Born in Roswell... married an alien...

View raw message