From d2741d1f912acb0739288094b98f11f1d7e50750 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sun, 28 Jul 2013 14:24:24 +0900 Subject: [PATCH] NetBSD also doesn't like the _XOPEN_SOURCE hack --- Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 545d3e1..b46d7a9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -248,7 +248,7 @@ if ($^O eq 'darwin') { if ($^O eq 'aix') { push @CC_DEFINE, '-DSQLITE_DISABLE_DIRSYNC'; } -if ($^O =~ /bsd/i && $^O ne 'openbsd') { +if ($^O =~ /bsd/i && $^O !~ /(?:open|net)bsd/) { push @CC_DEFINE, '-D_XOPEN_SOURCE'; }