Guard nanosleep prototype behind _POSIX_TIMERS

This commit is contained in:
pstef 2025-04-06 00:58:15 +00:00
parent b3f1152049
commit a33542719f
1 changed files with 2 additions and 0 deletions

View File

@ -32,7 +32,9 @@
extern "C" {
#endif
#ifndef _POSIX_TIMERS
int nanosleep(struct timespec *tb);
#endif
#ifdef __cplusplus
}