]> Kevux Git Server - fll/commitdiff
Bugfix: cap_mode_t is not available in legacy capability.
authorKevin Day <thekevinday@gmail.com>
Wed, 28 Apr 2021 01:52:45 +0000 (20:52 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 28 Apr 2021 01:52:45 +0000 (20:52 -0500)
level_0/f_capability/c/capability-common.h

index 098cd7878e9e45d940ae4c895b8760b69b698b70..f9374318b9863a7c0f8e622560a71940c16500a7 100644 (file)
@@ -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;