From 187fdaea67b5f27f43a2c119b2a66cca7e6d7cb3 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 11 Mar 2019 16:28:11 +0000 Subject: 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/configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libstdc++-v3/configure.ac') diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index 39b0b90..dadd882 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -268,6 +268,9 @@ if $GLIBCXX_IS_NATIVE; then # C11 functions for C++17 library AC_CHECK_FUNCS(timespec_get) + # For Networking TS. + AC_CHECK_FUNCS(sockatmark) + # For iconv support. AM_ICONV -- cgit v1.1