This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
IO.xs: OP_SIBLING is too new
authorFather Chrysostomos <sprout@cpan.org>
Wed, 10 Sep 2014 21:05:16 +0000 (14:05 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 10 Sep 2014 21:06:12 +0000 (14:06 -0700)
and IO is living a double life, so we must #define it for older
perls.

dist/IO/IO.xs

index 5e30795..c1b7e91 100644 (file)
@@ -61,6 +61,10 @@ typedef FILE * OutputStream;
 #  define dVAR dNOOP
 #endif
 
+#ifndef OP_SIBLING
+#  define OP_SIBLING(o) (o)->op_sibling
+#endif
+
 static int not_here(const char *s) __attribute__noreturn__;
 static int
 not_here(const char *s)