diff options
-rw-r--r-- | auto/modules/perl | 2 | ||||
-rw-r--r-- | src/perl/nxt_perl_psgi_layer.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/auto/modules/perl b/auto/modules/perl index 35d4f5fb..bf6fe6f0 100644 --- a/auto/modules/perl +++ b/auto/modules/perl @@ -78,6 +78,7 @@ if /bin/sh -c "$NXT_PERL -MConfig -e 'print \"Perl version: \", nxt_feature_incs="${NXT_PERL_INCLUDE}" nxt_feature_libs="${NXT_PERL_LIBS}" nxt_feature_test=" + #define _GNU_SOURCE #include <EXTERN.h> #include <perl.h> @@ -124,6 +125,7 @@ nxt_feature_run=value nxt_feature_incs="${NXT_PERL_INCLUDE}" nxt_feature_libs="${NXT_PERL_LIBS}" nxt_feature_test=" + #define _GNU_SOURCE #include <EXTERN.h> #include <perl.h> diff --git a/src/perl/nxt_perl_psgi_layer.h b/src/perl/nxt_perl_psgi_layer.h index 3fa349c0..561d5153 100644 --- a/src/perl/nxt_perl_psgi_layer.h +++ b/src/perl/nxt_perl_psgi_layer.h @@ -8,6 +8,7 @@ #define _NXT_PERL_PSGI_LAYER_H_INCLUDED_ +#define _GNU_SOURCE #include <EXTERN.h> #include <XSUB.h> #include <perl.h> |