rrthomas/luaposix — Issue #24: Build Failure on OSX 10.6.8
Author: axkibe
Created: 2012-01-31 13:43:43+00:00
State: open

Buiding makes this error:
``` CC posix_c_la-lposix.lo
lposix.c: In function ‘luaopen_posix_c’:
lposix.c:2078: error: ‘SIGPOLL’ undeclared (first use in this function)
lposix.c:2078: error: (Each undeclared identifier is reported only once
lposix.c:2078: error: for each function it appears in.)
make[2]: *** [posix_c_la-lposix.lo] Error
```

signal.h looks like this on this system:
```
#if (defined(_POSIX_C_SOURCE) && !defined(_DARWIN_C_SOURCE))
#define	SIGPOLL	7	/* pollable event ([XSR] generated, not supported) */
#else	/* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
#define	SIGIOT	SIGABRT	/* compatibility */
#define	SIGEMT	7	/* EMT instruction */
#endif	/* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
```

_DARWIN_C_SOURCE is enabled by normal configure script in config.h

Simply commenting out the setting of SIGPOLL helps.