phillbush/pmenu

`time.h` missing

jzbor opened this issue · 0 comments

jzbor commented

Hi,
First of all thanks for the nice program! Is it possible that you are missing the time.h header in pmenu.c? I get the following warning when compiling:

cc -Wall -Wextra -I/usr/local/include -I/usr/X11R6/include -I/usr/include/freetype2  -c pmenu.c
pmenu.c: In function ‘grabpointer’:
pmenu.c:1017:17: warning: implicit declaration of function ‘nanosleep’ [-Wimplicit-function-declaration]
 1017 |                 nanosleep(&ts, NULL);
      |                 ^~~~~~~~~