Author: cazfi
Date: Sat Feb 14 21:23:59 2015
New Revision: 28149

URL: http://svn.gna.org/viewcvs/freeciv?rev=28149&view=rev
Log:
Fixed compilation of included lua-5.3 to respect HAVE_MKSTEMP

See patch #5820

Modified:
    trunk/dependencies/lua-5.3/freeciv_lua.patch
    trunk/dependencies/lua-5.3/src/loslib.c

Modified: trunk/dependencies/lua-5.3/freeciv_lua.patch
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/dependencies/lua-5.3/freeciv_lua.patch?rev=28149&r1=28148&r2=28149&view=diff
==============================================================================
--- trunk/dependencies/lua-5.3/freeciv_lua.patch        (original)
+++ trunk/dependencies/lua-5.3/freeciv_lua.patch        Sat Feb 14 21:23:59 2015
@@ -1,6 +1,18 @@
+diff -Nurd lua-5.3/src/loslib.c lua-5.3/src/loslib.c
+--- lua-5.3/src/loslib.c       2015-02-12 21:13:58.132496638 +0200
++++ lua-5.3/src/loslib.c       2015-02-12 21:12:52.020498089 +0200
+@@ -58,7 +58,7 @@
+ ** uses mkstemp.
+ */
+ 
+-#if defined(LUA_USE_POSIX)    /* { */
++#if defined(LUA_USE_MKSTEMP)  /* { */
+ 
+ #include <unistd.h>
+ 
 diff -Nurd lua-5.3/src/luaconf.h lua-5.3/src/luaconf.h
---- lua-5.3/src/luaconf.h      2014-12-22 01:08:57.212407590 +0200
-+++ lua-5.3/src/luaconf.h      2014-12-22 01:02:44.860415760 +0200
+--- lua-5.3/src/luaconf.h      2015-02-12 21:13:58.132496638 +0200
++++ lua-5.3/src/luaconf.h      2015-02-12 21:12:25.356498674 +0200
 @@ -11,6 +11,7 @@
  #include <limits.h>
  #include <stddef.h>

Modified: trunk/dependencies/lua-5.3/src/loslib.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/dependencies/lua-5.3/src/loslib.c?rev=28149&r1=28148&r2=28149&view=diff
==============================================================================
--- trunk/dependencies/lua-5.3/src/loslib.c     (original)
+++ trunk/dependencies/lua-5.3/src/loslib.c     Sat Feb 14 21:23:59 2015
@@ -58,7 +58,7 @@
 ** uses mkstemp.
 */
 
-#if defined(LUA_USE_POSIX)     /* { */
+#if defined(LUA_USE_MKSTEMP)   /* { */
 
 #include <unistd.h>
 


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

Reply via email to