diff --git a/contrib/mariadb-connector-c-cmake/CMakeLists.txt b/contrib/mariadb-connector-c-cmake/CMakeLists.txt index 4257828890f..9840009b628 100644 --- a/contrib/mariadb-connector-c-cmake/CMakeLists.txt +++ b/contrib/mariadb-connector-c-cmake/CMakeLists.txt @@ -50,7 +50,11 @@ if(NOT MARIADB_UNIX_ADDR) set(MARIADB_UNIX_ADDR "/tmp/mysql.sock") endif() -set(HAVE_ALLOCA_H 1) +if (OS_FREEBSD) + set(HAVE_ALLOCA_H 0) +else() + set(HAVE_ALLOCA_H 1) +endif() set(HAVE_ARPA_INET_H 1) set(HAVE_DLFCN_H 1) set(HAVE_FCNTL_H 1)