PR libstdc++/89460 Fix Networking TS test failures on HP-UX
authorJonathan Wakely <jwakely@redhat.com>
Mon, 11 Mar 2019 16:28:11 +0000 (16:28 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 11 Mar 2019 16:28:11 +0000 (16:28 +0000)
commit187fdaea67b5f27f43a2c119b2a66cca7e6d7cb3
tree8847a9acf155c8bc3fecb9dc1621522df9d6898f
parent93964ebd2fec8d9e2132e118b02f93bea074ebd2
PR libstdc++/89460 Fix Networking TS test failures on HP-UX

Check for availability of POSIX sockatmark before using it.

Rename _S_ntoh overloads that are ambiguous when passed an integral type
that is neither uint16_t nor uint32_t.

PR libstdc++/89460
* configure.ac: Check for sockatmark.
* crossconfig.m4: Check for sockatmark.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/experimental/internet (address_v4::_S_hton): Rename
overloaded functions to _S_hton_16 and _S_ntoh_16.
(address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
(basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
* include/experimental/socket (basic_socket::at_mark): Check
_GLIBCXX_HAVE_SOCKATMARK.

From-SVN: r269588
libstdc++-v3/ChangeLog
libstdc++-v3/config.h.in
libstdc++-v3/configure
libstdc++-v3/configure.ac
libstdc++-v3/crossconfig.m4
libstdc++-v3/include/experimental/internet
libstdc++-v3/include/experimental/socket