Commit aa0a05fc aa0a05fc9c9021a6a5c389b65a6996856bca9cea by Sergey Poznyakoff

Restored changes accidentally lost in

gnulib.
1 parent a81af7ab
...@@ -141,6 +141,20 @@ ...@@ -141,6 +141,20 @@
141 # define putchar_unlocked(x) putchar (x) 141 # define putchar_unlocked(x) putchar (x)
142 # endif 142 # endif
143 143
144 /* GNULIB makes sure both program_invocation_name and
145 program_invocation_short_name are available */
146 #ifdef GNULIB_PROGRAM_INVOCATION_NAME
147 extern char *program_invocation_name;
148 # undef HAVE_DECL_PROGRAM_INVOCATION_NAME
149 # define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
150 #endif
151
152 #ifdef GNULIB_PROGRAM_INVOCATION_SHORT_NAME
153 extern char *program_invocation_short_name;
154 # undef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
155 # define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
156 #endif
157
144 #endif /* !_LIBC */ 158 #endif /* !_LIBC */
145 159
146 #ifndef __set_errno 160 #ifndef __set_errno
......