The attached patch seems to fix that bug finally, as Koji Yokota confirmed.

Actually, I'm not sure defined(__FreeBSD_kernel__) is really needed -- this 
basically identifies GNU/kFreeBSD (that doesn't have __FreeBSD__ defined).

The actual problem apparently was the casing of the macro.

José, can this fo into 1.5.0?

Jürgen
Index: configure.ac
===================================================================
--- configure.ac	(Revision 19062)
+++ configure.ac	(Arbeitskopie)
@@ -393,7 +393,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
 
Index: development/cmake/config.h.cmake
===================================================================
--- development/cmake/config.h.cmake	(Revision 19062)
+++ development/cmake/config.h.cmake	(Arbeitskopie)
@@ -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
 
Index: development/scons/SConstruct
===================================================================
--- development/scons/SConstruct	(Revision 19062)
+++ development/scons/SConstruct	(Arbeitskopie)
@@ -829,7 +829,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
 

Reply via email to