On 10/6/10, Edwin Eyan Moragas <e...@yndy.org> wrote:
...
> checking out the man pages for inet_aton(3), i didn't see anything
> that would lead to the warning. so i tried to tweak the order of the
> header files to reflect that of the man pages.
>
> the diff to the source would look like:
>
> e...@obsd $ diff -u net.c*
> --- net.c       Thu Oct  7 01:05:22 2010
> +++ net.c.orig  Thu Oct  7 01:02:58 2010
> @@ -6,9 +6,9 @@
>
>  #include <netdb.h>
>  #include <sys/socket.h>
> -#include <arpa/inet.h>
>  #include <netinet/tcp.h>
>  #include <netinet/in.h>
> +#include <arpa/inet.h>
>
> compiling the source after changing the order of includes didn't
> produce the warning.
>
> is this really supposed to happen?

It's an example of how OpenBSD doesn't completely comply with the
POSIX standard.  While there are other places where OpenBSD
intentionally doesn't comply with some of the various versions of the
standard, this case, IMO, can and should be fixed.


Philip Guenther

Reply via email to