You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Pavel Novy <no...@feld.cvut.cz> on 2001/11/19 13:45:32 UTC

[PATCH] http-2.0/server/mpm/netware/mpm_netware.c

Hi,
an optarg variable used here is conflicting with symbol name defined in 
the latest LIBC headers:

../../server/mpm/netware/mpm_netware.c: In function `netware_rewrite_args':
../../server/mpm/netware/mpm_netware.c:907: conflicting types for 
`___optarg'
u:/ndk/libc/include/unistd.h:105: previous declaration of `___optarg'
../../server/mpm/netware/mpm_netware.c:907: warning: extern declaration 
of `___optarg' doesn't match global one
make[1]: *** [../../server/mpm/netware/mpm_netware.o] Error 1

.../libc/include/unistd.h:
...
/* globals for getopt() implementation... */
char **___optarg( void );
int   *___optind( void );
int   *___opterr( void );
int   *___optopt( void );

#define optarg *___optarg()
#define optind *___optind()
#define opterr *___opterr()
#define optopt *___optopt()
...

Corresponding patch attached.

Thanks,
Pavel