diff options
author | Vladislav Vaintroub <vvaintroub@pcbsd> | 2013-02-19 23:46:52 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@pcbsd> | 2013-02-19 23:46:52 +0100 |
commit | 2c37ace13164b0a261fd850a0d11f5af539e657a (patch) | |
tree | 30e0fbf68a7f8caad01816684f09c5c1d92cbc37 /configure.cmake | |
parent | 4e9b5ff5437164b8061cdab5a42b48c07e511516 (diff) | |
download | mariadb-git-2c37ace13164b0a261fd850a0d11f5af539e657a.tar.gz |
MDEV-4174 - Use kqueue for threadpool implementation on more BSD variants than just FreeBSD
or OSX - i.e NetBSD, OpenBSD, DragonFly, etc.
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 05fa80e852f..7be532edd23 100644 --- a/configure.cmake +++ b/configure.cmake @@ -217,6 +217,7 @@ CHECK_INCLUDE_FILES (sched.h HAVE_SCHED_H) CHECK_INCLUDE_FILES (select.h HAVE_SELECT_H) CHECK_INCLUDE_FILES (semaphore.h HAVE_SEMAPHORE_H) CHECK_INCLUDE_FILES ("sys/types.h;sys/dir.h" HAVE_SYS_DIR_H) +CHECK_INCLUDE_FILES ("sys/types.h;sys/event.h" HAVE_SYS_EVENT_H) CHECK_INCLUDE_FILES (sys/ndir.h HAVE_SYS_NDIR_H) CHECK_INCLUDE_FILES (sys/pte.h HAVE_SYS_PTE_H) CHECK_INCLUDE_FILES (stddef.h HAVE_STDDEF_H) @@ -466,6 +467,10 @@ CHECK_FUNCTION_EXISTS (memalign HAVE_MEMALIGN) CHECK_FUNCTION_EXISTS (chown HAVE_CHOWN) CHECK_FUNCTION_EXISTS (nl_langinfo HAVE_NL_LANGINFO) +IF(HAVE_SYS_EVENT_H) +CHECK_FUNCTION_EXISTS (kqueue HAVE_KQUEUE) +ENDIF() + #-------------------------------------------------------------------- # Support for WL#2373 (Use cycle counter for timing) #-------------------------------------------------------------------- |