Missing include in src/queue.c
Closed this issue · 2 comments
orlitzky commented
In queue.c
, we find the following code...
void push_into_queue (char* buf) {
...
#ifdef USE_NANOSLEEP
delay.tv_sec = 0;
delay.tv_nsec = 250000000;
nanosleep(&delay,NULL);
#else
sleep(1);
#endif
The time.h
header for nanosleep
is included, but unistd.h
for sleep
is not.
jfrickson commented
queue.c
includes ../include/config.h
which includes unistd.h
orlitzky commented
Oops, I missed that. We've been carrying a patch that can be dropped, then. Thanks!