Fixed building perl on Alpine Linux.
_GNU_SOURCE is required there to expose off64_t and other types.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#define _NXT_PERL_PSGI_LAYER_H_INCLUDED_
|
||||
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <EXTERN.h>
|
||||
#include <XSUB.h>
|
||||
#include <perl.h>
|
||||
|
||||
Reference in New Issue
Block a user