From: Tomas Mraz <tmraz@fedoraproject.org> Date: Tue, 27 Nov 2012 08:50:49 +0000 (+0100) Subject: Fix missing includes for selinux and other types. X-Git-Tag: cronie1.4.10~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df146e0bae0239381c8c05f72fbc2e56635d33e5;p=cronie Fix missing includes for selinux and other types. --- diff --git a/src/funcs.h b/src/funcs.h index d16d40e..efd58fb 100644 --- a/src/funcs.h +++ b/src/funcs.h @@ -27,6 +27,11 @@ #define CRONIE_FUNCS_H #include <stdio.h> +#include <sys/types.h> + +#ifdef WITH_SELINUX +#include <selinux/selinux.h> +#endif #include "externs.h" #include "structs.h" diff --git a/src/security.c b/src/security.c index 98fd388..7639891 100644 --- a/src/security.c +++ b/src/security.c @@ -26,6 +26,8 @@ #include <pwd.h> #include <sys/types.h> #include <unistd.h> +#include <stdlib.h> +#include <string.h> #include "funcs.h" #include "globals.h" diff --git a/src/structs.h b/src/structs.h index 99d050e..200d20d 100644 --- a/src/structs.h +++ b/src/structs.h @@ -23,6 +23,10 @@ #define CRONIE_STRUCTS_H #include <time.h> +#include <sys/types.h> +#ifdef WITH_SELINUX +#include <selinux/selinux.h> +#endif #include "macros.h" #include "bitstring.h"