Author: cazfi
Date: Sat Feb 14 21:24:06 2015
New Revision: 28150

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

See patch #5820

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

Modified: branches/S2_6/dependencies/lua-5.3/freeciv_lua.patch
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/dependencies/lua-5.3/freeciv_lua.patch?rev=28150&r1=28149&r2=28150&view=diff
==============================================================================
--- branches/S2_6/dependencies/lua-5.3/freeciv_lua.patch        (original)
+++ branches/S2_6/dependencies/lua-5.3/freeciv_lua.patch        Sat Feb 14 
21:24:06 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: branches/S2_6/dependencies/lua-5.3/src/loslib.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/dependencies/lua-5.3/src/loslib.c?rev=28150&r1=28149&r2=28150&view=diff
==============================================================================
--- branches/S2_6/dependencies/lua-5.3/src/loslib.c     (original)
+++ branches/S2_6/dependencies/lua-5.3/src/loslib.c     Sat Feb 14 21:24:06 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