On linux do not include X11/Xlocale.h but locale.h, this prevents
authorPeter Howkins <flibble@users.sourceforge.net>
Wed, 14 Mar 2012 13:50:42 +0000 (13:50 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Wed, 14 Mar 2012 13:50:42 +0000 (13:50 +0000)
Xlocale.h redefining setlocate() into _Xsetlocale() that it then can't
find and link against.

cde/programs/dtudcfonted/libfal/_fallcWrap.c

index fbab0100d59503c0ccbff75a5384875063f42b66..39635b898a7d1a17011e992da1994c4facdf774e 100644 (file)
@@ -81,7 +81,11 @@ from the X Consortium.
 
 #include "_fallibint.h"
 #include "_fallcint.h"
+#if defined(linux)
+#include <locale.h>
+#else
 #include <X11/Xlocale.h>
+#endif
 #include <X11/Xos.h>
 #ifdef WIN32
 #undef close