Date: Tue, 5 Mar 2002 00:31:11 -0500 From: Garance A Drosihn <drosih@rpi.edu> To: freebsd-standards@FreeBSD.org Subject: netinet/in.h vs arpa/inet.h Message-ID: <p05101502b8aa0629a3ff@[128.113.24.47]>
next in thread | raw e-mail | index | archive | help
Now that I've finally got myself switched over to 5.0-current, I'm getting back to some lpr changes. I notice that if I compile lpr with -Wredundant-decls, I get a few warnings from source files which have: #include <netinet/in.h> #include <arpa/inet.h> Eg: /usr/include/arpa/inet.h:127: warning: redundant redeclaration of `__htonl' in same scope /usr/include/machine/endian.h:67: warning: previous declaration of `__htonl' (plus similar warnings for __htons __ntohl __ntohs) Now, I find I can just comment out the include for arpa/inet.h, and everything compiles OK (on both current and stable, if I've tested correctly..). On the other hand, I do not get these warnings even if I compile with -Wredundant-decls on -stable. Should I just remove the arpa/inet.h, or does this indicate that something isn't quite perfect with the recent changes to various include files under -current? -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05101502b8aa0629a3ff>