Commit 8f51a9f1 authored by tim@cane.mysql.fi's avatar tim@cane.mysql.fi

Style fix - keep os-specific stuff together.

parent 30e8de65
...@@ -711,6 +711,7 @@ case $SYSTEM_TYPE in ...@@ -711,6 +711,7 @@ case $SYSTEM_TYPE in
*bsdi*) *bsdi*)
echo "Adding fix for BSDI" echo "Adding fix for BSDI"
CFLAGS="$CFLAGS -D__BSD__" CFLAGS="$CFLAGS -D__BSD__"
AC_DEFINE_UNQUOTED(SOCKOPT_OPTLEN_TYPE, size_t)
;; ;;
*sgi-irix6*) *sgi-irix6*)
if test "$with_named_thread" = "no" if test "$with_named_thread" = "no"
...@@ -1177,10 +1178,6 @@ AC_C_BIGENDIAN ...@@ -1177,10 +1178,6 @@ AC_C_BIGENDIAN
#---START: Used in for client configure #---START: Used in for client configure
# Check base type of last arg to accept # Check base type of last arg to accept
MYSQL_TYPE_ACCEPT MYSQL_TYPE_ACCEPT
case "$SYSTEM_TYPE" in
*bsdi* ) AC_DEFINE_UNQUOTED(SOCKOPT_OPTLEN_TYPE, size_t);;
* ) AC_DEFINE_UNQUOTED(SOCKOPT_OPTLEN_TYPE, size_socket);;
esac
#---END: #---END:
# Find where the stack goes # Find where the stack goes
......
...@@ -351,6 +351,10 @@ typedef int (*qsort_cmp)(const void *,const void *); ...@@ -351,6 +351,10 @@ typedef int (*qsort_cmp)(const void *,const void *);
typedef SOCKET_SIZE_TYPE size_socket; typedef SOCKET_SIZE_TYPE size_socket;
#endif #endif
#ifndef SOCKOPT_OPTLEN_TYPE
#define SOCKOPT_OPTLEN_TYPE size_socket
#endif
/* file create flags */ /* file create flags */
#ifndef O_SHARE #ifndef O_SHARE
......
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