From e838f2cf8bd247716f00fc59e3e7dfe8fb7381f1 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 29 May 2013 06:50:06 +0900 Subject: [PATCH] define _XOPEN_SOURCE for *bsd systems to see if this solves the compilation issue for threaded perl without any side effects --- Makefile.PL | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index acab195..f7cab64 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -248,6 +248,9 @@ if ($^O eq 'darwin') { if ($^O eq 'aix') { push @CC_DEFINE, '-DSQLITE_DISABLE_DIRSYNC'; } +if ($^O =~ /bsd/i) { + push @CC_DEFINE, '-D_XOPEN_SOURCE'; +} my @CC_OPTIONS = ( INC => join( ' ', @CC_INC ),