This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: MySQL and Apache 2.x compile: SIG_DFL' undeclared
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- To: posting-list at MailAndNews dot com ((Jari Aalto))
- Cc: cygwin at sourceware dot cygnus dot com
- Date: Sat, 1 Dec 2001 19:56:06 +0100
- Subject: Re: MySQL and Apache 2.x compile: SIG_DFL' undeclared
- Organization: Esse keine toten Tiere
- References: <4rnbx90c.fsf@blue.sea.net>
- Reply-to: "Gerrit P. Haase" <cygwin at cygwin dot com>
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/