From 9506e5eb2f81f0182a75aa8105b88f89dc367c24 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 7 Aug 2016 14:13:11 +0200 Subject: [PATCH] perl plugin: fix build on RHEL5 perl.c: In function 'init_pi': perl.c:2304: warning: implicit declaration of function 'pthread_mutexattr_settype' perl.c:2304: error: 'PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) perl.c:2304: error: (Each undeclared identifier is reported only once perl.c:2304: error: for each function it appears in.) make[3]: *** [perl_la-perl.lo] Error 1 --- src/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index a51e2ec0..3d4555c1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -850,7 +850,8 @@ perl_la_SOURCES = perl.c perl_la_CPPFLAGS = $(AM_CPPFLAGS) -DHAS_BOOL=1 # Despite off_t being 64 bit wide on 64 bit platforms, Perl insist on using # off64_t which is only exposed when _LARGEFILE64_SOURCE is defined... *sigh* -perl_la_CPPFLAGS += -D_LARGEFILE64_SOURCE +# On older platforms we also need _REENTRANT. _GNU_SOURCE sets both of these. +perl_la_CPPFLAGS += -D_GNU_SOURCE perl_la_CFLAGS = $(AM_CFLAGS) \ $(PERL_CFLAGS) \ -DXS_VERSION=\"$(VERSION)\" -DVERSION=\"$(VERSION)\" -- 2.11.0