aboutsummaryrefslogtreecommitdiffstats
path: root/testing/litespeed/include.patch
blob: fe37d1c1c9b8993f9253cc1675fadc775f1bb582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
--- a/src/main/httpserver.cpp.orig
+++ b/src/main/httpserver.cpp
@@ -138,7 +138,7 @@
 
 #if defined(__FreeBSD__ ) || defined(__NetBSD__) || defined(__OpenBSD__) \
     || defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
 #endif
 
 #define FILEMODE            0644
--- a/src/main/lshttpdmain.cpp.orig
+++ b/src/main/lshttpdmain.cpp
@@ -50,7 +50,7 @@
 #include <util/httpfetch.h>
 #include <socket/gsockaddr.h>
 
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
 
 #include <extensions/cgi/cgidworker.h>
 #include <extensions/registry/extappregistry.h>

--- a/src/sslpp/sslsesscache.h.orig
+++ b/src/sslpp/sslsesscache.h
@@ -24,6 +24,7 @@
 #include <util/tsingleton.h>
 #include <stdint.h>
 #include <unistd.h>
+#include <time.h>
 
 
 #define LS_SSLSESSCACHE_DEFAULTSIZE 40*1024
--- a/src/modules/lua/lsluadefs.h.orig
+++ b/src/modules/lua/lsluadefs.h
@@ -22,8 +22,8 @@
 extern "C" {
 #endif
 /* need lua_State * */
-#include <luajit.h>
-#include <lauxlib.h>
+#include <luajit-2.1/luajit.h>
+#include <luajit-2.1/lauxlib.h>
 #ifdef __cplusplus
 };
 #endif
--- a/configure.orig
+++ b/configure
@@ -16031,16 +16031,16 @@
 if test "$OPENLSWS_BROTLI" = "no" ; then
     echo "Brotli compression disabled!!!"
 else
-    LIBBROTLI=" $OPENLSWS_BROTLI/out/libbrotlidec-static.a $OPENLSWS_BROTLI/out/libbrotlienc-static.a $OPENLSWS_BROTLI/out/libbrotlicommon-static.a "
-    as_ac_File=`$as_echo "ac_cv_file_$OPENLSWS_BROTLI/out/libbrotlidec-static.a" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OPENLSWS_BROTLI/out/libbrotlidec-static.a" >&5
-$as_echo_n "checking for $OPENLSWS_BROTLI/out/libbrotlidec-static.a... " >&6; }
+    LIBBROTLI=" /usr/lib/libbrotlidec-static.a /usr/lib/libbrotlienc-static.a /usr/lib/libbrotlicommon-static.a "
+    as_ac_File=`$as_echo "ac_cv_file_/usr/lib/libbrotlidec-static.a" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/lib/libbrotlidec-static.a" >&5
+$as_echo_n "checking for /usr/lib/libbrotlidec-static.a... " >&6; }
 if eval \${$as_ac_File+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   test "$cross_compiling" = yes &&
   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
-if test -r "$OPENLSWS_BROTLI/out/libbrotlidec-static.a"; then
+if test -r "/usr/lib/libbrotlidec-static.a"; then
   eval "$as_ac_File=yes"
 else
   eval "$as_ac_File=no"
@@ -16052,21 +16052,21 @@
 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
 
 cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$OPENLSWS_BROTLI/out/libbrotlidec-static.a" | $as_tr_cpp` 1
+#define `$as_echo "HAVE_/usr/lib/libbrotlidec-static.a" | $as_tr_cpp` 1
 _ACEOF
 
 else
   LIBBROTLI=
 fi
-as_ac_File=`$as_echo "ac_cv_file_$OPENLSWS_BROTLI/c/include/brotli/decode.h" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OPENLSWS_BROTLI/c/include/brotli/decode.h" >&5
-$as_echo_n "checking for $OPENLSWS_BROTLI/c/include/brotli/decode.h... " >&6; }
+as_ac_File=`$as_echo "ac_cv_file_/usr/include/brotli/decode.h" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/brotli/decode.h" >&5
+$as_echo_n "checking for /usr/include/brotli/decode.h... " >&6; }
 if eval \${$as_ac_File+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   test "$cross_compiling" = yes &&
   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
-if test -r "$OPENLSWS_BROTLI/c/include/brotli/decode.h"; then
+if test -r "/usr/include/brotli/decode.h"; then
   eval "$as_ac_File=yes"
 else
   eval "$as_ac_File=no"
@@ -16078,7 +16078,7 @@
 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
 
 cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$OPENLSWS_BROTLI/c/include/brotli/decode.h" | $as_tr_cpp` 1
+#define `$as_echo "HAVE_/sur/include/brotli/decode.h" | $as_tr_cpp` 1
 _ACEOF
 
 else
@@ -16089,8 +16089,8 @@
         echo "Brotli files check failed. If continue, brotli compression will be disabled."
     else
         echo "Brotli checked and enabled!!!"
-        CPPFLAGS="$CPPFLAGS -I$OPENLSWS_BROTLI/c/include "
-        LIBBROTLI=" $OPENLSWS_BROTLI/out/libbrotlidec-static.a $OPENLSWS_BROTLI/out/libbrotlienc-static.a $OPENLSWS_BROTLI/out/libbrotlicommon-static.a "
+        CPPFLAGS="$CPPFLAGS -I/usr/include "
+        LIBBROTLI=" /usr/lib/libbrotlidec-static.a /usr/lib/libbrotlienc-static.a /usr/lib/libbrotlicommon-static.a "
 
 cat >>confdefs.h <<_ACEOF
 #define USE_BROTLI 1