diff --git a/configure.ac b/configure.ac index a953b1421c..36e00e52bc 100644 --- a/configure.ac +++ b/configure.ac @@ -393,7 +393,7 @@ int mkstemp(char*); * implements this with the help of libc, or whether it has own code * does not matter for us, because we don't use libc directly (Georg) */ -#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && ! defined(__FREEBSD__) +#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) # define USE_WCHAR_T #endif diff --git a/development/cmake/config.h.cmake b/development/cmake/config.h.cmake index 3bd17bc019..91f026edee 100644 --- a/development/cmake/config.h.cmake +++ b/development/cmake/config.h.cmake @@ -171,7 +171,7 @@ * implements this with the help of libc, or whether it has own code * does not matter for us, because we don't use libc directly (Georg) */ -#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && ! defined(__FREEBSD__) +#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) # define USE_WCHAR_T #endif diff --git a/development/scons/SConstruct b/development/scons/SConstruct index 687366f260..c4cab67f10 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -829,7 +829,7 @@ utils.createConfigFile(conf, * implements this with the help of libc, or whether it has own code * does not matter for us, because we don't use libc directly (Georg) */ -#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && ! defined(__FREEBSD__) +#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) # define USE_WCHAR_T #endif