diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-03-11 09:43:39 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-03-12 21:19:06 +0100 |
commit | de5fa34860886ad68fba5e739987e16c342e8f14 (patch) | |
tree | c2df25dcc9fb6c97f887d7c9966be1d862990d69 /src/util | |
parent | e0c86d21388bffe2e3919e780780c40d96186abb (diff) | |
download | sssd-de5fa34860886ad68fba5e739987e16c342e8f14.tar.gz sssd-de5fa34860886ad68fba5e739987e16c342e8f14.tar.xz sssd-de5fa34860886ad68fba5e739987e16c342e8f14.zip |
libipa_hbac: Ensure we always build with C90
libipa_hbac is also used by external projects such as pam_hbac:
https://github.com/jhrozek/pam_hbac
In order to make sure we don't use C99 features in the libipa_hbac code
in the future, this patch adds an explicit -std=c89 flag to CFLAGS.
Signed-off-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/sss_tc_utf8.c | 1 | ||||
-rw-r--r-- | src/util/sss_utf8.c | 3 | ||||
-rw-r--r-- | src/util/sss_utf8.h | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/util/sss_tc_utf8.c b/src/util/sss_tc_utf8.c index 4b2c49316..44194ab02 100644 --- a/src/util/sss_tc_utf8.c +++ b/src/util/sss_tc_utf8.c @@ -19,6 +19,7 @@ */ #include <talloc.h> +#include "util/util.h" #include "util/sss_utf8.h" char * diff --git a/src/util/sss_utf8.c b/src/util/sss_utf8.c index 7ba11ca75..722f28d08 100644 --- a/src/util/sss_utf8.c +++ b/src/util/sss_utf8.c @@ -22,6 +22,9 @@ #include "config.h" +#include <string.h> +#include <errno.h> + #ifdef HAVE_LIBUNISTRING #include <unistr.h> #include <unicase.h> diff --git a/src/util/sss_utf8.h b/src/util/sss_utf8.h index 95b085f56..bca9b2c51 100644 --- a/src/util/sss_utf8.h +++ b/src/util/sss_utf8.h @@ -23,12 +23,15 @@ #ifndef SSS_UTF8_H_ #define SSS_UTF8_H_ -#include "util/util.h" - #ifndef ENOMATCH #define ENOMATCH -1 #endif +#include <stdint.h> +#include <stdbool.h> + +#include "util/util_errors.h" + void sss_utf8_free(void *ptr); /* The result must be freed with sss_utf8_free() */ |