NagiosEnterprises/ndoutils

Missing include in src/queue.c

Closed this issue · 2 comments

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.

queue.c includes ../include/config.h which includes unistd.h

Oops, I missed that. We've been carrying a patch that can be dropped, then. Thanks!