summaryrefslogtreecommitdiff
path: root/databases/mysql51-client/Makefile.common
diff options
context:
space:
mode:
authormarkd <markd>2014-05-28 10:16:54 +0000
committermarkd <markd>2014-05-28 10:16:54 +0000
commit429a102414905c3304444c6f5fafcea7591edc3b (patch)
tree822441f2b8f1a43962151f2180e6550d755dab52 /databases/mysql51-client/Makefile.common
parenta8652a39d1fa10ef85d2a67383b1e15aa4ec2be6 (diff)
downloadpkgsrc-429a102414905c3304444c6f5fafcea7591edc3b.tar.gz
Dont find gethostbyname_r() on NetBSD. The API differs resulting in
segfaults on 6.1_STABLE.
Diffstat (limited to 'databases/mysql51-client/Makefile.common')
-rw-r--r--databases/mysql51-client/Makefile.common6
1 files changed, 5 insertions, 1 deletions
diff --git a/databases/mysql51-client/Makefile.common b/databases/mysql51-client/Makefile.common
index 76a8f15616d..d110a0c6d84 100644
--- a/databases/mysql51-client/Makefile.common
+++ b/databases/mysql51-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.31 2014/04/14 00:02:49 rodent Exp $
+# $NetBSD: Makefile.common,v 1.32 2014/05/28 10:16:54 markd Exp $
#
# used by databases/mysql51-client/Makefile
# used by databases/mysql51-server/Makefile
@@ -78,6 +78,10 @@ GNU_ARCH.i386= i486
CFLAGS+= -march=i486
.endif
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ENV+= ac_cv_func_gethostbyname_r="no"
+.endif
+
CONFIGURE_ENV+= mysql_cv_compress="yes"
CPPFLAGS+= -Dunix