summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-10 18:17:14 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-10 18:17:14 +0100
commitced6f9386ee12b60137f6eae1202dcc2aea487a7 (patch)
treeb4a0b1c94c71919c9b9ed6bb60d32de92facaee8 /security
parentd44f572bbfde3e8fcadf0ac6ed52a4b1b52329bc (diff)
downloaduxp-ced6f9386ee12b60137f6eae1202dcc2aea487a7.tar.gz
Issue mcp-graveyard/UXP#1338 - Un-bust building of NSS after update to 3.48 on Linux.
Diffstat (limited to 'security')
-rw-r--r--security/nss/coreconf/Linux.mk2
-rw-r--r--security/nss/coreconf/config.gypi1
2 files changed, 2 insertions, 1 deletions
diff --git a/security/nss/coreconf/Linux.mk b/security/nss/coreconf/Linux.mk
index d07f8a3c5e..854d3ca96e 100644
--- a/security/nss/coreconf/Linux.mk
+++ b/security/nss/coreconf/Linux.mk
@@ -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
diff --git a/security/nss/coreconf/config.gypi b/security/nss/coreconf/config.gypi
index 3b049111a8..adb344e795 100644
--- a/security/nss/coreconf/config.gypi
+++ b/security/nss/coreconf/config.gypi
@@ -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"', {