blob: c5b56b15cee2eb465e3cdd0c9885c177144288bb (
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
|
--- configure.in 2009-04-11 10:35:42.000000000 +0200
+++ configure.in 2009-06-23 21:12:56.000000000 +0200
@@ -1940,10 +1940,16 @@
inttypes.h \
grp.h \
db.h \
- db_185.h \
- sys/capability.h
+ db_185.h
)
+dnl Check for libcap header
+AC_ARG_ENABLE(caps,
+[ --disable-caps disable usage of Linux capabilities library to control privileges])
+if test "$enable_caps" = yes; then
+ AC_CHECK_HEADERS( sys/capability.h )
+fi
+
AC_CHECK_HEADERS(
linux/netfilter_ipv4.h \
linux/netfilter_ipv4/ip_tproxy.h \
--- src/tools.cc 2009-04-11 10:35:42.000000000 +0200
+++ src/tools.cc 2009-06-23 21:11:11.000000000 +0200
@@ -42,11 +42,6 @@
#ifdef _SQUID_LINUX_
#if HAVE_SYS_CAPABILITY_H
-#undef _POSIX_SOURCE
-/* Ugly glue to get around linux header madness colliding with glibc */
-#define _LINUX_TYPES_H
-#define _LINUX_FS_H
-typedef uint32_t __u32;
#include <sys/capability.h>
#endif
#endif
|