Include libintl.h to silence warning about bindtextdomain, textdomain.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Sep 2011 12:59:41 +0000 (13:59 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Sep 2011 12:59:41 +0000 (13:59 +0100)
configure.ac
sh/hivexsh.c
xml/hivexml.c

index a4e55b4..d7520e7 100644 (file)
@@ -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])
index 8831653..faff83c 100644 (file)
 #include <errno.h>
 #include <locale.h>
 
+#ifdef HAVE_LIBINTL_H
+#include <libintl.h>
+#endif
+
 #ifdef HAVE_LIBREADLINE
 #include <readline/readline.h>
 #include <readline/history.h>
index d6a6303..903c4b7 100644 (file)
 #include <time.h>
 #include <locale.h>
 
+#ifdef HAVE_LIBINTL_H
+#include <libintl.h>
+#endif
+
 #include <libxml/xmlwriter.h>
 
 #include "hivex.h"