diff src/s/freebsd.h @ 205:92f8ad5d0d3f r20-4b1

Import from CVS: tag r20-4b1
author cvs
date Mon, 13 Aug 2007 10:02:46 +0200
parents 9ad43877534d
children 41ff10fd062f
line wrap: on
line diff
--- a/src/s/freebsd.h	Mon Aug 13 10:02:23 2007 +0200
+++ b/src/s/freebsd.h	Mon Aug 13 10:02:46 2007 +0200
@@ -35,11 +35,13 @@
 
 /* Kludge to work around setlocale(LC_ALL,...) not working after 01/1997 */
 #if __FreeBSD_version >= 199701
+#ifdef HAVE_X_WINDOWS
 #ifndef NOT_C_CODE
 #include <X11/Xlocale.h>
 #define setlocale(locale_category, locale_spec) setlocale(LC_CTYPE, locale_spec)
 #endif /* C code */
 #endif
+#endif
 
 #define LIBS_TERMCAP "-ltermcap"