Bug#23294: Detection of sem_xxx functions on NetBSD broken and DragonflyBSD \

	misc patches

Patch from community member Juan RP.  "dragonfly" os name should be synonymous
with netbsd and sem_* functions may also be found in librt.
parent f8bd5d31
......@@ -479,7 +479,7 @@ then
FIND_PROC="$PS \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
else
case $SYSTEM_TYPE in
*freebsd*)
*freebsd*|*dragonfly*)
FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
;;
*darwin*)
......@@ -756,6 +756,8 @@ AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
# For sem_xxx functions on Solaris 2.6
AC_CHECK_FUNC(sem_init, , AC_CHECK_LIB(posix4, sem_init))
# For sem_xxx functions on NetBSD
AC_CHECK_FUNC(sem_init, , AC_CHECK_LIB(rt, sem_init))
MYSQL_CHECK_ZLIB_WITH_COMPRESS
# For large pages support
......@@ -1081,7 +1083,7 @@ case $SYSTEM_TYPE in
MAX_C_OPTIMIZE="-O"
fi
;;
*freebsd*)
*freebsd*|*dragonfly*)
AC_MSG_WARN([Adding fix for interrupted reads])
OSVERSION=`sysctl -a | grep osreldate | awk '{ print $2 }'`
if test "$OSVERSION" -gt "480100" && \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment