httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apache-2.0/src/lib/apr/test testargs.c ab_apr.c
Date Sat, 20 Nov 1999 22:49:16 GMT
On 20 Nov 1999 martin@hyperreal.org wrote:
> martin      99/11/20 14:05:28
> 
>   Modified:    src/lib/apr/misc/beos misc.h
>                src/lib/apr/misc/os2 misc.h
>                src/lib/apr/misc/unix misc.h
>                src/lib/apr/misc/win32 misc.h
>                src/lib/apr/test testargs.c ab_apr.c
>   Added:       src/lib/apr/include apr_getopt.h
>   Log:
>   Under Linux, I always got a
>   "libc.so.6: Warning: definition of 'optarg' overriding common
>    libapr(getopt.o): warning: common is here"
>   To make matters cleaner, I added an apr_getopt.h to go with the
>   various copies of getopt.c in the os subdirectories. In this header,
>   I renamed all getopt-API functions to "apr_<apiname>". This avoids
>   name clashes with system libraries.

Two questions:

* why wouldn't we use the library version of getopt() instead of our own?

* shouldn't that be ap_* ?


Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/



Mime
View raw message