]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Handles missing macro.
authorroot <root@localhost.(none)>
Fri, 29 Jul 2011 12:52:28 +0000 (14:52 +0200)
committerroot <root@localhost.(none)>
Fri, 29 Jul 2011 12:52:28 +0000 (14:52 +0200)
sysdep/linux/syspriv.h

index b2cdde85a6910464b092cbfcf417232b80257648..d2ba95ddb83a26cb7e7152644f3550b9f4afdc16 100644 (file)
@@ -7,6 +7,11 @@
 #define _LINUX_CAPABILITY_U32S_3     2
 #endif
 
+/* CAP_TO_MASK is missing in CentOS header files */
+#ifndef CAP_TO_MASK
+#define CAP_TO_MASK(x)      (1 << ((x) & 31))
+#endif
+
 /* capset() prototype is missing ... */
 int capset(cap_user_header_t hdrp, const cap_user_data_t datap);