1
0
mirror of https://github.com/rd235/cado synced 2024-12-27 06:24:11 +01:00

some ifndef/define added-to cope with old prctl.h

This commit is contained in:
Renzo Davoli 2016-06-25 14:22:14 +02:00
parent 68a7dcfa2e
commit d0fbc9c474

View File

@ -25,6 +25,17 @@
#include <sys/prctl.h>
#include <set_ambient_cap.h>
/* just in case prctl.h is not providing these definitions */
#ifndef PR_CAP_AMBIENT
#define PR_CAP_AMBIENT 47
#endif
#ifndef PR_CAP_AMBIENT_RAISE
#define PR_CAP_AMBIENT_RAISE 2
#endif
#ifndef PR_CAP_AMBIENT_LOWER
#define PR_CAP_AMBIENT_LOWER 3
#endif
void set_ambient_cap(uint64_t capset)
{
cap_value_t cap;