Re-addition of __getopt_argv_const caused
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 23 Nov 2004 02:50:54 +0000 (02:50 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 23 Nov 2004 02:50:54 +0000 (02:50 +0000)
commitdf81465613d8cda39a02d16aa62c0db476349fac
tree40a114426585d7f28eb4cae069a97e4f1bdc3c63
parent2119b9a0051c83a0d08858f5c91a8d9104c0dcf6
Re-addition of __getopt_argv_const caused
redefinition warnings. To avoid them, include the defines
in `#if !defined __need_getopt ... #endif'. The only place
where __getopt_argv_const is used is in definitions
of getopt_long and getopt_long_only below, which are as well
protected by `#ifndef __need_getopt'.
[defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
__need_getopt after including <stdio.h> and <unistd.h> These
headers might have defined it.
lib/getopt_.h