diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-12-08 18:47:54 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-12-27 12:27:28 +0100 |
commit | 0956f45d301b882c591ec0cc6017e669fb465887 (patch) | |
tree | df91f4d8bb87c2115857a24de9a0bc4a9eb00513 /universal.c | |
parent | fb177060d22211d76166a17b30fa8fd7880b2d76 (diff) | |
download | perl-0956f45d301b882c591ec0cc6017e669fb465887.tar.gz |
Also build PerlIO_get_layers with -Dusesfio
This extends patch 5fef3b4a7f0c97d3 from April 2003 from fixing the
stdio-only build to also fix the sfio build, which was broken when
PerlIO_get_layers was added (2 commits previously, 39f7a87036eb8d13).
Without this fix, perl would refuse to build with -Dusesfio.
Given that 39f7a87036eb8d13 was merged to maint-5.8, this means that the
-Dusesfio build was broken for v5.8.1 and later on that branch, as well as
for v5.10.0 and all subsequent releases. Given that in the past 10 years,
no-one has reported this, it's safe to assume that no-one considers sfio
support to be important.
Diffstat (limited to 'universal.c')
-rw-r--r-- | universal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/universal.c b/universal.c index b217c14280..110ab8d9cf 100644 --- a/universal.c +++ b/universal.c @@ -29,7 +29,7 @@ #define PERL_IN_UNIVERSAL_C #include "perl.h" -#ifdef USE_PERLIO +#if defined(USE_PERLIO) && !defined(USE_SFIO) #include "perliol.h" /* For the PERLIO_F_XXX */ #endif @@ -1026,7 +1026,7 @@ XS(XS_PerlIO_get_layers) dXSARGS; if (items < 1 || items % 2 == 0) croak_xs_usage(cv, "filehandle[,args]"); -#ifdef USE_PERLIO +#if defined(USE_PERLIO) && !defined(USE_SFIO) { SV * sv; GV * gv; |