From 93657762196ebdb396bc64cabaa12ca4bf4695c0 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 10 Jan 2020 18:17:14 +0100 Subject: Issue #1338 - Un-bust building of NSS after update to 3.48 on Linux. --- security/nss/coreconf/Linux.mk | 2 +- security/nss/coreconf/config.gypi | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'security') 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 functions, strdup, realpath, and getentropy '_BSD_SOURCE', # for the above in glibc <= 2.19 + '_POSIX_SOURCE', # for ], }], [ 'OS=="dragonfly" or OS=="freebsd"', { -- cgit v1.2.3