httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject auto configuration and full function prototypes
Date Wed, 26 Apr 2000 00:55:17 GMT
Can we assume that proper function prototypes (i.e., with argument
declarations) are available (and used) in system header files?  

In some cases (e.g., sigwait()), there are a couple of flavors which
can be readily identified from the number of arguments.

It is pretty simple to try to compile something like this

  #include <signal.h>

  void main(void)
  {
    sigset_t set;
    sigwait(&set);
  }

and set SIGWAIT_HAS_ONE_ARG (or some such) if it successfully
compiles, but if the declaration used from signal.h is "int sigwait()"
then configuration is broken on that platform.

Any better ideas?

Thanks...
-- 
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