httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Novy <n...@feld.cvut.cz>
Subject [PATCH] http-2.0/server/mpm/netware/mpm_netware.c
Date Mon, 19 Nov 2001 12:45:32 GMT
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

Mime
View raw message