diff options
author | root <root@localhost.(none)> | 2011-07-29 14:52:28 +0200 |
---|---|---|
committer | root <root@localhost.(none)> | 2011-07-29 14:52:28 +0200 |
commit | aca0e79faa391a2841134dac78a499dfdca68bd9 (patch) | |
tree | a6c4f8773ab82cea5d044636c4469e93479ad1a5 | |
parent | 14272097df989808790673521f643053f898aa8c (diff) | |
download | bird-aca0e79faa391a2841134dac78a499dfdca68bd9.tar bird-aca0e79faa391a2841134dac78a499dfdca68bd9.zip |
Handles missing macro.
-rw-r--r-- | sysdep/linux/syspriv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdep/linux/syspriv.h b/sysdep/linux/syspriv.h index b2cdde8..d2ba95d 100644 --- a/sysdep/linux/syspriv.h +++ b/sysdep/linux/syspriv.h @@ -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); |