[apparmor] [PATCH][AppArmor 2.7] Fix missing pid_t dependency in apparmor.h
John Johansen
john.johansen at canonical.com
Mon Aug 22 20:13:41 UTC 2011
The define for pid_t is missing in apparmor.h so that if it is included
in programs that don't also include sys/types.h the compile will break.
Signed-off-by: John Johansen <john.johansen at canonical.com>
---
libraries/libapparmor/src/apparmor.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libraries/libapparmor/src/apparmor.h b/libraries/libapparmor/src/apparmor.h
index fbfaae0..c93bee8 100644
--- a/libraries/libapparmor/src/apparmor.h
+++ b/libraries/libapparmor/src/apparmor.h
@@ -18,6 +18,8 @@
#ifndef _SYS_APPARMOR_H_
#define _SYS_APPARMOR_H 1
+#include <sys/types.h>
+
__BEGIN_DECLS
/* Prototypes for apparmor state queries */
--
1.7.5.4
More information about the AppArmor
mailing list