diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2018-09-20 16:34:19 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2018-09-20 16:34:19 +0300 |
commit | e4650b741291cce8269e9ee10484c79be101edcd (patch) | |
tree | bc386f424ee16aa9607ddc84886cf276bbde27fb /auto/modules/perl | |
parent | 9fe6e75d355266024f67a5611120c3c97557be14 (diff) | |
download | unit-e4650b741291cce8269e9ee10484c79be101edcd.tar.gz unit-e4650b741291cce8269e9ee10484c79be101edcd.tar.bz2 |
Fixed building perl on Alpine Linux.
_GNU_SOURCE is required there to expose off64_t and other types.
Diffstat (limited to 'auto/modules/perl')
-rw-r--r-- | auto/modules/perl | 2 |
1 files changed, 2 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> |