diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-03-11 16:28:11 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-03-11 16:28:11 +0000 |
commit | 187fdaea67b5f27f43a2c119b2a66cca7e6d7cb3 (patch) | |
tree | 8847a9acf155c8bc3fecb9dc1621522df9d6898f /libstdc++-v3/configure.ac | |
parent | 93964ebd2fec8d9e2132e118b02f93bea074ebd2 (diff) | |
download | gcc-187fdaea67b5f27f43a2c119b2a66cca7e6d7cb3.tar.gz |
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
Diffstat (limited to 'libstdc++-v3/configure.ac')
-rw-r--r-- | libstdc++-v3/configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index 39b0b90c289..dadd8827b49 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 |