Searched hist:266842 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/netinet/
H A Din.hdiff 266842 Thu May 29 13:34:09 MDT 2014 jilles netinet/in.h: Expose htonl(), htons(), ntohl() and ntohs() in strict POSIX
mode.

Put the htonl(), htons(), ntohl() and ntohs() declarations under
__POSIX_VISIBLE >= 200112. POSIX.1-2001 and newer require these to be
exposed from <netinet/in.h> (as well as <arpa/inet.h>).

Note that it may be unnecessary to check __POSIX_VISIBLE >= 200112 because
older versions of POSIX and the C standard do not define this header.
However, other places in the same file already perform the check.

PR: 188316
Submitted by: Christian Neukirchen

Completed in 277 milliseconds