void-packages/srcpkgs/luasec/patches/lua51.patch

154 lines
3.6 KiB
Diff

diff --git src/context.c src/context.c
index cafc222..107ed60 100644
--- src/context.c
+++ src/context.c
@@ -18,8 +18,8 @@
#include <openssl/x509.h>
#include <openssl/x509v3.h>
-#include <lua.h>
-#include <lauxlib.h>
+#include "lua5.1/lua.h"
+#include "lua5.1/lauxlib.h"
#include "context.h"
#include "options.h"
diff --git src/context.h src/context.h
index 293f615..e346096 100644
--- src/context.h
+++ src/context.h
@@ -7,7 +7,7 @@
*
*--------------------------------------------------------------------------*/
-#include <lua.h>
+#include "lua5.1/lua.h"
#include <openssl/ssl.h>
#include "config.h"
diff --git src/luasocket/buffer.c src/luasocket/buffer.c
index 4ef4e8e..5886207 100644
--- src/luasocket/buffer.c
+++ src/luasocket/buffer.c
@@ -2,8 +2,8 @@
* Input/Output interface for Lua programs
* LuaSocket toolkit
\*=========================================================================*/
-#include "lua.h"
-#include "lauxlib.h"
+#include "lua5.1/lua.h"
+#include "lua5.1/lauxlib.h"
#include "buffer.h"
diff --git src/luasocket/buffer.h src/luasocket/buffer.h
index 1281bb3..cd7da2e 100644
--- src/luasocket/buffer.h
+++ src/luasocket/buffer.h
@@ -15,7 +15,7 @@
* The module is built on top of the I/O abstraction defined in io.h and the
* timeout management is done with the timeout.h interface.
\*=========================================================================*/
-#include "lua.h"
+#include "lua5.1/lua.h"
#include "io.h"
#include "timeout.h"
diff --git src/luasocket/io.h src/luasocket/io.h
index 76a3e58..fe72085 100644
--- src/luasocket/io.h
+++ src/luasocket/io.h
@@ -13,7 +13,7 @@
* is very simple.
\*=========================================================================*/
#include <stdio.h>
-#include "lua.h"
+#include "lua5.1/lua.h"
#include "timeout.h"
diff --git src/luasocket/timeout.c src/luasocket/timeout.c
index 94a524b..32edaa4 100644
--- src/luasocket/timeout.c
+++ src/luasocket/timeout.c
@@ -6,8 +6,8 @@
#include <limits.h>
#include <float.h>
-#include "lua.h"
-#include "lauxlib.h"
+#include "lua5.1/lua.h"
+#include "lua5.1/lauxlib.h"
#include "timeout.h"
diff --git src/luasocket/timeout.h src/luasocket/timeout.h
index 6715ca7..d758270 100644
--- src/luasocket/timeout.h
+++ src/luasocket/timeout.h
@@ -4,7 +4,7 @@
* Timeout management functions
* LuaSocket toolkit
\*=========================================================================*/
-#include "lua.h"
+#include "lua5.1/lua.h"
/* timeout control structure */
typedef struct t_timeout_ {
diff --git src/ssl.c src/ssl.c
index bd8a744..b26e99e 100644
--- src/ssl.c
+++ src/ssl.c
@@ -19,8 +19,8 @@
#include <openssl/x509_vfy.h>
#include <openssl/err.h>
-#include <lua.h>
-#include <lauxlib.h>
+#include "lua5.1/lua.h"
+#include "lua5.1/lauxlib.h"
#include <luasocket/io.h>
#include <luasocket/buffer.h>
diff --git src/ssl.h src/ssl.h
index b357196..1bb42fc 100644
--- src/ssl.h
+++ src/ssl.h
@@ -8,7 +8,7 @@
*--------------------------------------------------------------------------*/
#include <openssl/ssl.h>
-#include <lua.h>
+#include "lua5.1/lua.h"
#include <luasocket/io.h>
#include <luasocket/buffer.h>
diff --git src/x509.c src/x509.c
index 5e7a1dd..9865561 100644
--- src/x509.c
+++ src/x509.c
@@ -20,8 +20,8 @@
#include <openssl/bio.h>
#include <openssl/bn.h>
-#include <lua.h>
-#include <lauxlib.h>
+#include "lua5.1/lua.h"
+#include "lua5.1/lauxlib.h"
#include "x509.h"
diff --git src/x509.h src/x509.h
index 2b32cdd..9c52f12 100644
--- src/x509.h
+++ src/x509.h
@@ -10,7 +10,7 @@
#define LSEC_X509_H
#include <openssl/x509v3.h>
-#include <lua.h>
+#include "lua5.1/lua.h"
#include "config.h"