Michael DiDonato <did### [at] scrippsedu> writes:
> Rohan Hart wrote:
>
> Alternatively...
>
> #define _BSD_SIGNALS or _BSD_COMPAT before including <signal.h>
> and you get the slightly different and non-SYSV-compatible BSD proto:
> int (*signal(int sig, int (*func)(int, ...)))(int, ...);
>
> Rohan
>
> Tried -D_XOPEN_SOURCE and then got the following error:
...
> unix.cpp:500: `gettimeofday' undeclared (first use this function)
gettimeofday seems to be BSDish and not part of the XOpen
world... however both _XOPEN_SOURCE and _BSD_COMPAT can be set
together which finds gettimeofday and has the interesting property of
creating a void returning signal with BSD semantics.
Whether that'll work any better...
Rohan
Post a reply to this message
|