September 1, 2006

Rebuilding libslack for OS X Intel

Not sure if my fix is really correct yet or not, but the source snapshot at libslack.org doesn't build without it. Here's the before and after:

agent.c:1658: warning: implicit declaration of function ‘timercmp’
agent.c:1658: error: parse error before &lsquo;<&rsquo; token
agent.c: In function &lsquo;update&rsquo;:

To fix this, add the following line at the top of config.h to ensure the definition of the timercmp macro is used from sys/time.h

#define NO_POSIX_C_SOURCE 1

This seems wrong, and I haven't checked how well the library works, but at least it compiles now and I'll post test results soon.

Posted by cbrown at September 1, 2006 10:58 PM
Comments