hurd: add includes and macro prerequisites
- ptsname() needs _XOPEN_SOURCE >= 500 - setenv needs _POSIX_C_SOURCE >= 200112 - setgroups needs grp.h
This commit is contained in:
parent
2780b87d56
commit
90648ea3e5
@ -307,6 +307,7 @@ if(APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "GNU")
|
if(CMAKE_SYSTEM_NAME STREQUAL "GNU")
|
||||||
|
list(APPEND uv_defines _GNU_SOURCE _POSIX_C_SOURCE=200112 _XOPEN_SOURCE=500)
|
||||||
list(APPEND uv_libraries dl)
|
list(APPEND uv_libraries dl)
|
||||||
list(APPEND uv_sources
|
list(APPEND uv_sources
|
||||||
src/unix/bsd-ifaddrs.c
|
src/unix/bsd-ifaddrs.c
|
||||||
|
|||||||
@ -55,7 +55,8 @@
|
|||||||
extern char **environ;
|
extern char **environ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__) || \
|
||||||
|
defined(__GNU__)
|
||||||
# include <grp.h>
|
# include <grp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user