components/lua/patches/3.headers.patch
changeset 1265 d6a57c34a9a2
parent 1021 93e0813581a0
equal deleted inserted replaced
1264:51f059c08b40 1265:d6a57c34a9a2
       
     1 Patch to src/luaconf.h is to adjust lua's default path for where it 
       
     2 looks for .lua and lua related .so's
       
     3 
     1 --- src/lua.h.~1~	Fri Apr 20 06:18:26 2012
     4 --- src/lua.h.~1~	Fri Apr 20 06:18:26 2012
     2 +++ src/lua.h	Tue Oct 16 16:37:24 2012
     5 +++ src/lua.h	Tue Oct 16 16:37:24 2012
     3 @@ -9,6 +9,10 @@
     6 @@ -9,6 +9,10 @@
     4  #ifndef lua_h
     7  #ifndef lua_h
     5  #define lua_h
     8  #define lua_h
    64 +}
    67 +}
    65  #endif
    68  #endif
    66  
    69  
    67 +#endif
    70 +#endif
    68 
    71 
       
    72 
       
    73 --- src/luaconf.h.orig	2012-10-25 08:39:30.502881780 -0700
       
    74 +++ src/luaconf.h	2012-10-25 08:40:00.726463215 -0700
       
    75 @@ -100,7 +100,7 @@
       
    76  #else			/* }{ */
       
    77  
       
    78  #define LUA_VDIR	LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
       
    79 -#define LUA_ROOT	"/usr/local/"
       
    80 +#define LUA_ROOT	"/usr/"
       
    81  #define LUA_LDIR	LUA_ROOT "share/lua/" LUA_VDIR
       
    82  #define LUA_CDIR	LUA_ROOT "lib/lua/" LUA_VDIR
       
    83  #define LUA_PATH_DEFAULT  \