Skip to content

Fixed implicit declaration of nanosleep In function ‘grabkeyboard’:#13

Open
carrotflowerr wants to merge 1 commit intophillbush:masterfrom
carrotflowerr:fix-nanosleep
Open

Fixed implicit declaration of nanosleep In function ‘grabkeyboard’:#13
carrotflowerr wants to merge 1 commit intophillbush:masterfrom
carrotflowerr:fix-nanosleep

Conversation

@carrotflowerr
Copy link
Copy Markdown

added "#include <time.h>"

to fix:
xprompt.c: In function ‘grabkeyboard’:
xprompt.c:1395:17: error: implicit declaration of function ‘nanosleep’ [-Wimplic
it-function-declaration]
1395 | nanosleep(&ts, NULL);
|

@zubermichal
Copy link
Copy Markdown

Hi @phillbush, can we get this merged? In current state I'm able to compile xprompt on Debian, but on Gentoo it fails with the above. Fix is dead simple.

Actually I'm surprised that time.h wasn't included in the first place. The project is based on dmenu, and that include has been there for 15 years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants