summaryrefslogtreecommitdiff
path: root/net-proxy/squidguard/files/squidguard-1.6.0-stdlib.patch
blob: f36a094edfe6a6a9629907a7970ffdb46bbe6e53 (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
https://bugs.gentoo.org/919449
patch by joergd <joergd@bitquell.de>
--- a/configure.ac	2019-02-02 18:00:40.000000000 +0100
+++ b/configure.ac	2025-01-13 12:13:48.087653985 +0100
@@ -233,6 +233,9 @@
     AC_DEFINE(HAVE_LIBLDAP, 1, [Define if LDAP support should be compiled])
     AC_RUN_IFELSE([AC_LANG_SOURCE([[
         #include <ldap.h>
+        #ifdef HAVE_STDLIB_H
+            #include <stdlib.h>
+        #endif
         int main()
         {
            LDAP *p;
@@ -342,6 +345,9 @@
 LIBS="$LIBS -ldb"
 AC_RUN_IFELSE([AC_LANG_SOURCE([[
     #include <db.h>
+    #ifdef HAVE_STDLIB_H
+        #include <stdlib.h>
+    #endif
     int main() 
     {
         int major, minor, patch;
@@ -377,6 +383,9 @@
 
 AC_RUN_IFELSE([AC_LANG_SOURCE([[
     #include <db.h>
+    #ifdef HAVE_STDLIB_H
+        #include <stdlib.h>
+    #endif
     int main() 
     {
         int major, minor, patch;
@@ -413,6 +422,9 @@
 
 AC_RUN_IFELSE([AC_LANG_SOURCE([[
     #include <db.h>
+    #ifdef HAVE_STDLIB_H
+        #include <stdlib.h>
+    #endif
     int main() 
     {
         int major, minor, patch;
@@ -441,6 +453,9 @@
 
 AC_RUN_IFELSE([AC_LANG_SOURCE([[
     #include <db.h>
+    #ifdef HAVE_STDLIB_H
+        #include <stdlib.h>
+    #endif
     int main() 
     {
         int major, minor, patch;