From 96f1edbae1ed41ec1c4e558060b7b33b6b749ea4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 6 Sep 2011 13:59:41 +0100 Subject: [PATCH] Include libintl.h to silence warning about bindtextdomain, textdomain. --- configure.ac | 2 +- sh/hivexsh.c | 4 ++++ xml/hivexml.c | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a4e55b4..d7520e7 100644 --- a/configure.ac +++ b/configure.ac @@ -131,7 +131,7 @@ dnl Check sizeof long. AC_CHECK_SIZEOF([long]) dnl Headers. -AC_CHECK_HEADERS([endian.h byteswap.h]) +AC_CHECK_HEADERS([byteswap.h endian.h libintl.h]) dnl Functions. AC_CHECK_FUNCS([bindtextdomain]) diff --git a/sh/hivexsh.c b/sh/hivexsh.c index 8831653..faff83c 100644 --- a/sh/hivexsh.c +++ b/sh/hivexsh.c @@ -29,6 +29,10 @@ #include #include +#ifdef HAVE_LIBINTL_H +#include +#endif + #ifdef HAVE_LIBREADLINE #include #include diff --git a/xml/hivexml.c b/xml/hivexml.c index d6a6303..903c4b7 100644 --- a/xml/hivexml.c +++ b/xml/hivexml.c @@ -28,6 +28,10 @@ #include #include +#ifdef HAVE_LIBINTL_H +#include +#endif + #include #include "hivex.h" -- 1.8.3.1