diff options
-rw-r--r-- | configure.in | 5 | ||||
-rw-r--r-- | include/global.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/configure.in b/configure.in index c6885bffec0..fbfb3119674 100644 --- a/configure.in +++ b/configure.in @@ -711,6 +711,7 @@ case $SYSTEM_TYPE in *bsdi*) echo "Adding fix for BSDI" CFLAGS="$CFLAGS -D__BSD__" + AC_DEFINE_UNQUOTED(SOCKOPT_OPTLEN_TYPE, size_t) ;; *sgi-irix6*) if test "$with_named_thread" = "no" @@ -1177,10 +1178,6 @@ AC_C_BIGENDIAN #---START: Used in for client configure # Check base type of last arg to 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: # Find where the stack goes diff --git a/include/global.h b/include/global.h index 4119b690031..ce3fc80770f 100644 --- a/include/global.h +++ b/include/global.h @@ -351,6 +351,10 @@ typedef int (*qsort_cmp)(const void *,const void *); typedef SOCKET_SIZE_TYPE size_socket; #endif +#ifndef SOCKOPT_OPTLEN_TYPE +#define SOCKOPT_OPTLEN_TYPE size_socket +#endif + /* file create flags */ #ifndef O_SHARE |