[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: FreeBSD 4.2 breakage (?)

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2001-02-06 00:09:45 CET

> I spent a good amount of time trying to figure out the right
> combination to allow us to include <string.h> and <strings.h> (which
> is done by apr_want.h) without some redundant declaration warnings.

Can we change apr_want.h not to include <strings.h> if
APR_HAVE_STRING_H is defined?

> Removing redundant-decl was the easy fix, but I didn't think it was
> the right fix. Removing POSIX_SOURCE is also the easy fix, but I
> don't think the right fix :-)

Well, it is certainly wrong to define _POSIX_SOURCE and then include
<strings.h>, even if it doesn't happen to break anything at the
moment like <sys/socket.h> does.

I notice that apr_file_io.h also drags in <sys/uio.h>, also a
non-POSIX header. Once again, _POSIX_SOURCE is not compatible with
this behavior.
Received on Sat Oct 21 14:36:21 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.