summaryrefslogtreecommitdiff
blob: 50cf69df57e7f7d2eeee9f0d2ed05b6cd2f21a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -Naur bind-9.5.0-P2.orig/bin/named/unix/os.c bind-9.5.0-P2/bin/named/unix/os.c
--- bind-9.5.0-P2.orig/bin/named/unix/os.c	2008-05-06 03:32:51.000000000 +0200
+++ bind-9.5.0-P2/bin/named/unix/os.c	2008-08-03 17:46:19.000000000 +0200
@@ -170,7 +170,11 @@
 		return;
 #ifndef HAVE_LIBCAP
 	memset(&caphead, 0, sizeof(caphead));
+#ifdef _LINUX_CAPABILITY_VERSION_3
+	caphead.version = _LINUX_CAPABILITY_VERSION_3;
+#else
 	caphead.version = _LINUX_CAPABILITY_VERSION;
+#endif
 	caphead.pid = 0;
 	memset(&cap, 0, sizeof(cap));
 	cap.effective = caps;