Issue #1338 - Un-bust building of NSS after update to 3.48 on Linux.

This commit is contained in:
wolfbeast 2020-01-10 18:17:14 +01:00 committed by Roy Tam
commit b299b34492
2 changed files with 2 additions and 1 deletions

View file

@ -21,7 +21,7 @@ ifeq ($(USE_PTHREADS),1)
endif
DEFAULT_COMPILER = gcc
DEFINES += -D_DEFAULT_SOURCE -D_BSD_SOURCE
DEFINES += -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE
ifeq ($(OS_TARGET),Android)
ifndef ANDROID_NDK

View file

@ -357,6 +357,7 @@
'linux',
'_DEFAULT_SOURCE', # for <endian.h> functions, strdup, realpath, and getentropy
'_BSD_SOURCE', # for the above in glibc <= 2.19
'_POSIX_SOURCE', # for <signal.h>
],
}],
[ 'OS=="dragonfly" or OS=="freebsd"', {