Author: cazfi
Date: Mon Nov 17 06:01:11 2014
New Revision: 27051

URL: http://svn.gna.org/viewcvs/freeciv?rev=27051&view=rev
Log:
Include locale.h for setlocale() declaration

See bug #22955

Modified:
    trunk/configure.ac
    trunk/utility/shared.c

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/configure.ac?rev=27051&r1=27050&r2=27051&view=diff
==============================================================================
--- trunk/configure.ac  (original)
+++ trunk/configure.ac  Mon Nov 17 06:01:11 2014
@@ -1068,7 +1068,7 @@
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS([fcntl.h sys/time.h sys/types.h unistd.h sys/utsname.h \
                   sys/file.h libintl.h signal.h strings.h execinfo.h \
-                  libgen.h])
+                  libgen.h locale.h])
 AC_HEADER_STDBOOL
 dnl Avoid including the unix emulation layer if we build mingw executables
 dnl There would be type conflicts between winsock and bsd/unix includes

Modified: trunk/utility/shared.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/utility/shared.c?rev=27051&r1=27050&r2=27051&view=diff
==============================================================================
--- trunk/utility/shared.c      (original)
+++ trunk/utility/shared.c      Mon Nov 17 06:01:11 2014
@@ -29,6 +29,10 @@
 #include <string.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
 
 #ifdef HAVE_PWD_H
 #include <pwd.h>


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to