diff --git a/include/posix/unistd.h b/include/posix/unistd.h index b5957c8b0aa..d130ea6228a 100644 --- a/include/posix/unistd.h +++ b/include/posix/unistd.h @@ -31,10 +31,6 @@ extern int rename(const char *old, const char *newp); extern int unlink(const char *path); extern int stat(const char *path, struct stat *buf); extern int mkdir(const char *path, mode_t mode); -#endif - -unsigned sleep(unsigned int seconds); -int usleep(useconds_t useconds); #ifdef CONFIG_NETWORKING static inline int gethostname(char *buf, size_t len) @@ -43,6 +39,11 @@ static inline int gethostname(char *buf, size_t len) } #endif +#endif + +unsigned sleep(unsigned int seconds); +int usleep(useconds_t useconds); + #ifdef __cplusplus } #endif