Commit 274c71ce authored by unknown's avatar unknown

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.


configure.in:
  Detect OS name of DragonFlyBSD.
  
  Search for semaphor functions in librt also.
parent 96fa010c
...@@ -479,7 +479,7 @@ then ...@@ -479,7 +479,7 @@ then
FIND_PROC="$PS \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null" FIND_PROC="$PS \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
else else
case $SYSTEM_TYPE in case $SYSTEM_TYPE in
*freebsd*) *freebsd*|*dragonfly*)
FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null" FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
;; ;;
*darwin*) *darwin*)
...@@ -756,6 +756,8 @@ AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt])) ...@@ -756,6 +756,8 @@ AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
# For sem_xxx functions on Solaris 2.6 # For sem_xxx functions on Solaris 2.6
AC_CHECK_FUNC(sem_init, , AC_CHECK_LIB(posix4, sem_init)) 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 MYSQL_CHECK_ZLIB_WITH_COMPRESS
# For large pages support # For large pages support
...@@ -1081,7 +1083,7 @@ case $SYSTEM_TYPE in ...@@ -1081,7 +1083,7 @@ case $SYSTEM_TYPE in
MAX_C_OPTIMIZE="-O" MAX_C_OPTIMIZE="-O"
fi fi
;; ;;
*freebsd*) *freebsd*|*dragonfly*)
AC_MSG_WARN([Adding fix for interrupted reads]) AC_MSG_WARN([Adding fix for interrupted reads])
OSVERSION=`sysctl -a | grep osreldate | awk '{ print $2 }'` OSVERSION=`sysctl -a | grep osreldate | awk '{ print $2 }'`
if test "$OSVERSION" -gt "480100" && \ 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