summaryrefslogtreecommitdiffstats
path: root/df
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-04-30 16:23:05 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-05-01 08:57:55 +0100
commit6aa95e87c1f259589ff9c7812707e4b30b8f6fd7 (patch)
tree46660d96146b7ab15e7b56fe167f68cef65a95ca /df
parentea74856d953aec39af6ee556221618fda644312f (diff)
downloadlibguestfs-6aa95e87c1f259589ff9c7812707e4b30b8f6fd7.tar.gz
libguestfs-6aa95e87c1f259589ff9c7812707e4b30b8f6fd7.tar.xz
libguestfs-6aa95e87c1f259589ff9c7812707e4b30b8f6fd7.zip
Remove "convenience header" "gettext.h" and use <libintl.h> instead.
gettextize provides a local file called "gettext.h". Remove this and use <libintl.h> from glibc headers instead. Most of this change is mechanical: #include <libintl.h> in every C file which uses any gettext function. But also we remove the gettext.h file, and adjust the "_" macros. Note that this effectively removes the ./configure --disable-nls option, although we don't know if that ever worked.
Diffstat (limited to 'df')
-rw-r--r--df/domains.c1
-rw-r--r--df/output.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/df/domains.c b/df/domains.c
index 3993bbfa..43dc47d3 100644
--- a/df/domains.c
+++ b/df/domains.c
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <libintl.h>
#include <assert.h>
#ifdef HAVE_LIBVIRT
diff --git a/df/output.c b/df/output.c
index d604566d..ba513ded 100644
--- a/df/output.c
+++ b/df/output.c
@@ -24,6 +24,7 @@
#include <string.h>
#include <inttypes.h>
#include <xvasprintf.h>
+#include <libintl.h>
#include <math.h>
#include <assert.h>