summaryrefslogtreecommitdiff
path: root/databases/mysql55-client/Makefile.common
diff options
context:
space:
mode:
authorryoon <ryoon>2014-07-18 13:42:24 +0000
committerryoon <ryoon>2014-07-18 13:42:24 +0000
commit954cf38e7fd6caa1895f75d932ecd2c516d745b7 (patch)
tree8ccd7cf948aad30e6900ede453dd8abd74e23b49 /databases/mysql55-client/Makefile.common
parentaad69cdb83c2f0283e214965e3d6365640626cda (diff)
downloadpkgsrc-954cf38e7fd6caa1895f75d932ecd2c516d745b7.tar.gz
Fix build under SCO OpenServer 5.0.7/3.2.
Diffstat (limited to 'databases/mysql55-client/Makefile.common')
-rw-r--r--databases/mysql55-client/Makefile.common10
1 files changed, 8 insertions, 2 deletions
diff --git a/databases/mysql55-client/Makefile.common b/databases/mysql55-client/Makefile.common
index e462c3c3e59..5c454389763 100644
--- a/databases/mysql55-client/Makefile.common
+++ b/databases/mysql55-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.37 2014/06/02 07:17:31 adam Exp $
+# $NetBSD: Makefile.common,v 1.38 2014/07/18 13:42:24 ryoon Exp $
#
# used by databases/mysql55-client/Makefile
# used by databases/mysql55-server/Makefile
@@ -96,9 +96,15 @@ CFLAGS+= -DHAVE_CURSES_H
CXXFLAGS+= -DHAVE_CURSES_H
.endif
+# SCO OpenServer 5.0.7/3.2's readdir_r has 2 arguments and return struct dirent.
+.if ${OS_VARIANT} == "SCOOSR5"
+CMAKE_ARGS+= -DHAVE_READDIR_R=OFF
+.endif
+
.include "../../mk/pthread.buildlink3.mk"
-.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
+.if (defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")) || \
+ ${OS_VARIANT} == "SCOOSR5"
CFLAGS+= -DSIGNALS_DONT_BREAK_READ
CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ
.endif