From 83a371c0053dda13893db08b614e255e2c920604 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 27 Apr 2021 20:52:45 -0500 Subject: [PATCH] Bugfix: cap_mode_t is not available in legacy capability. --- level_0/f_capability/c/capability-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/level_0/f_capability/c/capability-common.h b/level_0/f_capability/c/capability-common.h index 098cd78..f937431 100644 --- a/level_0/f_capability/c/capability-common.h +++ b/level_0/f_capability/c/capability-common.h @@ -39,6 +39,8 @@ extern "C" { typedef int cap_flag_value_t; typedef unsigned int cap_mode_t; typedef int cap_value_t; + #elif defined(_libcap_legacy_only_) + typedef unsigned int cap_mode_t; #endif // _di_libcap_ typedef cap_t f_capability_t; -- 1.8.3.1