From 60c52bb03a9e43128ba8fdbc51c569729508826e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 11 Nov 2004 21:23:56 +0000 Subject: [PATCH] * getopt_.h: Add __getopt_argv_const. Include and along with . --- lib/ChangeLog | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 64c362f812..4fe3ca97e6 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,7 +1,18 @@ 2004-11-11 Paul Eggert + * getopt_.h (__getopt_argv_const): New macro, to be used so that + we can stop lying to compilers about the constness of argv when we + are compiled outside glibc. + (getopt, getopt_long, getopt_long_only): Use it. + * getopt.c (_getopt_initialize, _getopt_internal_r, _getopt_internal, + getopt): Likewise. + * getopt1.c (getopt_long, _getopt_long_r, getopt_long_only, + _getopt_long_only_r): Likewise. + * getopt_int.h (_getopt_internal, _getopt_internal_r, _getopt_long_r, + _getopt_long_only_r): Likewise. + * getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]: - Include if available. + Include and , and if available. Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for the other external symbols. (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style -- 2.30.2