MySQL and Apache 2.x compile: SIG_DFL' undeclared

Gerrit P. Haase gp@familiehaase.de
Sat Dec 1 12:24:00 GMT 2001


Hallo Jari,

Am 2001-12-01 um 16:20 schriebst du:

>     Does anyone how could this error be fixed? Looking at the 
>     /usr//include/signal.h look okay to me.

>       13 #define SIG_DFL ((void (*)(int))0)      /* Default action */
>       14 #define SIG_IGN ((void (*)(int))1)      /* Ignore action */
>       15 #define SIG_ERR ((void (*)(int))-1)     /* Error return */
>       16 #else
>       17 #define SIG_DFL ((void (*)())0)         /* Default action */
>       18 #define SIG_IGN ((void (*)())1)         /* Ignore action */
>       19 #define SIG_ERR ((void (*)())-1)        /* Error return */

It looks like this for me:

#if defined(__STDC__) || defined(__cplusplus)
#define SIG_DFL ((void (*)(int))0)      /* Default action */
#define SIG_IGN ((void (*)(int))1)      /* Ignore action */
#define SIG_ERR ((void (*)(int))-1)     /* Error return */
#else
#define SIG_DFL ((void (*)())0)         /* Default action */
#define SIG_IGN ((void (*)())1)         /* Ignore action */
#define SIG_ERR ((void (*)())-1)        /* Error return */
#endif

Have you tried to define __STDC__ to see if it makes a difference,
though I built mysql-4.0 (not from CVS) and I had no major problems
like you have.

Ciao,

Gerrit P. Haase                            mailto:gp@familiehaase.de
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list