On linux do not include X11/Xlocale.h but locale.h, this prevents

Xlocale.h redefining setlocate() into _Xsetlocale() that it then can't
find and link against.
This commit is contained in:
Peter Howkins 2012-03-14 13:50:42 +00:00
parent 7294970c18
commit 32e8c91d44
1 changed files with 4 additions and 0 deletions

View 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