From 189f6f8db256bca8ef63683104247e4b85c81f93 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Fri, 28 May 2021 21:26:56 +0300 Subject: [PATCH] [apr] error: use of undeclared identifier 'NSIG' --- libs/apr/include/apr_general.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/apr/include/apr_general.h b/libs/apr/include/apr_general.h index 42eec83ce4..3a956288e3 100644 --- a/libs/apr/include/apr_general.h +++ b/libs/apr/include/apr_general.h @@ -29,6 +29,10 @@ #include "apr_pools.h" #include "apr_errno.h" +#if !defined(_ANSI_SOURCE) && defined(_DARWIN_C_SOURCE) +#define NSIG __DARWIN_NSIG +#endif + #if APR_HAVE_SIGNAL_H #include #endif