summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorLukas Slebodnik <lukas.slebodnik@intrak.sk>2016-11-18 17:49:35 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2016-11-25 13:01:46 +0100
commitc101cb130df0705a9227dadce22554307eee54db (patch)
treea36cf4207190501390e246a5ab610f0502975759 /src/util
parent73c9330fa3de6912e45c1ab686d5290f143b8352 (diff)
downloadsssd-c101cb130df0705a9227dadce22554307eee54db.tar.gz
sssd-c101cb130df0705a9227dadce22554307eee54db.tar.xz
sssd-c101cb130df0705a9227dadce22554307eee54db.zip
UTIL: Fix compilation of sss_utf8 with libunistring
The internal header file "util/util.h" was removed from sss_utf8.h as part of commit de5fa34860886ad68fba5e739987e16c342e8f14. It was neccessary to ensure libipa_hbac can be build with C90 compatible compiler. This header file includes many system header file and after this change caused missing declaration of the function free() src/util/sss_utf8.c: In function ‘sss_utf8_free’: src/util/sss_utf8.c:40:12: error: implicit declaration of function ‘free’ [-Werror=implicit-function-declaration] return free(ptr); ^~~~ src/util/sss_utf8.c:40:12: warning: incompatible implicit declaration of built-in function ‘free’ src/util/sss_utf8.c:40:12: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’ cc1: some warnings being treated as errors Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sss_utf8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/sss_utf8.c b/src/util/sss_utf8.c
index 722f28d08..e62e9c6c9 100644
--- a/src/util/sss_utf8.c
+++ b/src/util/sss_utf8.c
@@ -26,6 +26,7 @@
#include <errno.h>
#ifdef HAVE_LIBUNISTRING
+#include <stdlib.h>
#include <unistr.h>
#include <unicase.h>
#elif defined(HAVE_GLIB2)