[apparmor] [PATCH] parser: fix incorrect/missing includes
Kees Cook
kees at ubuntu.com
Mon May 2 19:54:44 UTC 2011
Description: adjust for missing or incorrect includes.
Author: Kees Cook <kees at ubuntu.com>
Index: apparmor-debian/parser/parser_regex.c
===================================================================
--- apparmor-debian.orig/parser/parser_regex.c 2011-05-01 18:35:03.130381994 -0700
+++ apparmor-debian/parser/parser_regex.c 2011-05-01 18:36:06.181342956 -0700
@@ -16,6 +16,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <libintl.h>
Index: apparmor-debian/parser/parser_main.c
===================================================================
--- apparmor-debian.orig/parser/parser_main.c 2011-05-01 18:35:03.110381690 -0700
+++ apparmor-debian/parser/parser_main.c 2011-05-01 18:36:06.201343262 -0700
@@ -28,7 +28,6 @@
#include <fcntl.h>
#include <mntent.h>
#include <libintl.h>
-#include <linux/limits.h>
#include <locale.h>
#define _(s) gettext(s)
@@ -36,6 +35,7 @@
/* #define DEBUG */
#include <unistd.h>
+#include <limits.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <sys/stat.h>
--
Kees Cook
Ubuntu Security Team
More information about the AppArmor
mailing list