aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-09-30 11:42:05 +0000
committerNick Clifton <nickc@redhat.com>2005-09-30 11:42:05 +0000
commita70c240376fbfde088944325cc58a0e9edba6cc5 (patch)
tree7a7fc819d79f97c05d8089d9f8a4032877677c4c /gprof
parent7fe2b9a6a674d57789207d7f14fb2f0573bcc8f5 (diff)
downloadgdb-a70c240376fbfde088944325cc58a0e9edba6cc5.zip
gdb-a70c240376fbfde088944325cc58a0e9edba6cc5.tar.gz
gdb-a70c240376fbfde088944325cc58a0e9edba6cc5.tar.bz2
asintl.h/bucomm.h/ld.h: Prevent the inclusion of <libintl.h> from the Solaris
version of <locale.h> when ENABLE_NLS is not defined. gprof.c (main):Only invoke bindtextdomain() and textdomain() if ENABLE_NLS is defined.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/gprof.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 15722f4..7140813 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-30 Matthias Kurz <mk@baerlap.north.de>
+
+ * gprof.c (main):Only invoke bindtextdomain() and textdomain() if
+ ENABLE_NLS is defined.
+
2005-05-09 Nick Clifton <nickc@redhat.com>
* Update the address and phone number of the FSF organization in
diff --git a/gprof/gprof.c b/gprof/gprof.c
index 2814309..0430df7 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -189,8 +189,10 @@ main (int argc, char **argv)
#if defined (HAVE_SETLOCALE)
setlocale (LC_CTYPE, "");
#endif
+#ifdef ENABLE_NLS
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+#endif
whoami = argv[0];
xmalloc_set_program_name (whoami);