mirror of
https://github.com/libuv/libuv
synced 2025-03-28 21:13:16 +00:00
build: compile -D_GNU_SOURCE on linux
Fixes a number of -Wimplicit-function-declaration warnings for functions that are behind _GNU_SOURCE on old systems, like strndup() and pread(). PR-URL: https://github.com/libuv/libuv/pull/162 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
67bb2b5f70
commit
965fffc2e9
@ -303,6 +303,7 @@ endif
|
||||
|
||||
if LINUX
|
||||
include_HEADERS += include/uv-linux.h
|
||||
libuv_la_CFLAGS += -D_GNU_SOURCE
|
||||
libuv_la_SOURCES += src/unix/linux-core.c \
|
||||
src/unix/linux-inotify.c \
|
||||
src/unix/linux-syscalls.c \
|
||||
|
Loading…
x
Reference in New Issue
Block a user