0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 16:48:43 +00:00

Handles missing macro.

This commit is contained in:
root 2011-07-29 14:52:28 +02:00
parent 14272097df
commit aca0e79faa

View File

@ -7,6 +7,11 @@
#define _LINUX_CAPABILITY_U32S_3 2 #define _LINUX_CAPABILITY_U32S_3 2
#endif #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 ... */ /* capset() prototype is missing ... */
int capset(cap_user_header_t hdrp, const cap_user_data_t datap); int capset(cap_user_header_t hdrp, const cap_user_data_t datap);