Namespace: Defining htonl() and friends here instead of arpa/inet.h is

a BSD extension.
This commit is contained in:
David Schultz 2009-03-14 20:16:54 +00:00
parent 48a3f7d9ae
commit b3c11b5b91
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189829

View File

@ -120,7 +120,7 @@ struct sockaddr_in {
char sin_zero[8];
};
#ifndef _KERNEL
#if !defined(_KERNEL) && __BSD_VISIBLE
#ifndef _BYTEORDER_PROTOTYPED
#define _BYTEORDER_PROTOTYPED
@ -140,7 +140,7 @@ __END_DECLS
#define ntohs(x) __ntohs(x)
#endif
#endif /* !_KERNEL */
#endif /* !_KERNEL && __BSD_VISIBLE */
#if __POSIX_VISIBLE >= 200112
#define IPPROTO_RAW 255 /* raw IP packet */