summaryrefslogtreecommitdiff
path: root/src/gl/error.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-12-04 18:48:55 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-12-04 19:17:50 +0100
commit50e8ed9e742198c0952464b1a7d44a5e8b84aee3 (patch)
tree2b71f473f6ad8b216d8050a9061e3dee82526d21 /src/gl/error.c
parent8f0bf2fc4bfa06a8f44300f57bb40f143687cb5b (diff)
downloadgnutls-50e8ed9e742198c0952464b1a7d44a5e8b84aee3.tar.gz
src gl: updatedtmp-remove-iconv
Diffstat (limited to 'src/gl/error.c')
-rw-r--r--src/gl/error.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gl/error.c b/src/gl/error.c
index 0ac7695185..b3b1286a35 100644
--- a/src/gl/error.c
+++ b/src/gl/error.c
@@ -1,5 +1,5 @@
/* Error handler for noninteractive utilities
- Copyright (C) 1990-1998, 2000-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 1990-1998, 2000-2007, 2009-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
This program is free software: you can redistribute it and/or modify
@@ -42,6 +42,8 @@
# define USE_UNLOCKED_IO 0
# define _GL_ATTRIBUTE_FORMAT_PRINTF(a, b)
# define _GL_ARG_NONNULL(a)
+#else
+# include "getprogname.h"
#endif
#if USE_UNLOCKED_IO
@@ -113,9 +115,7 @@ int strerror_r ();
# endif
# endif
-/* The calling program should define program_name and set it to the
- name of the executing program. */
-extern char *program_name;
+#define program_name getprogname ()
# if HAVE_STRERROR_R || defined strerror_r
# define __strerror_r strerror_r