summaryrefslogtreecommitdiffstats
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
commit93657762196ebdb396bc64cabaa12ca4bf4695c0 (patch)
treeb4a0b1c94c71919c9b9ed6bb60d32de92facaee8
parent0186023f4adebc5ff1bfc4ac4a3f3870d7dd68af (diff)
downloadUXP-93657762196ebdb396bc64cabaa12ca4bf4695c0.tar
UXP-93657762196ebdb396bc64cabaa12ca4bf4695c0.tar.gz
UXP-93657762196ebdb396bc64cabaa12ca4bf4695c0.tar.lz
UXP-93657762196ebdb396bc64cabaa12ca4bf4695c0.tar.xz
UXP-93657762196ebdb396bc64cabaa12ca4bf4695c0.zip
Issue #1338 - Un-bust building of NSS after update to 3.48 on Linux.
-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 d07f8a3c5..854d3ca96 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 3b049111a..adb344e79 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"', {