diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-04-30 14:25:25 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-04-30 14:29:20 +0100 |
commit | 0d501c338548152f9d2728d383eec3e9cef16784 (patch) | |
tree | 80dd7441a67f0a8fb36880fc08a99174dc6849b6 /config | |
parent | 57028ff2d3f56deec25498f83e99c39478acc02f (diff) | |
download | gcc-0d501c338548152f9d2728d383eec3e9cef16784.zip gcc-0d501c338548152f9d2728d383eec3e9cef16784.tar.gz gcc-0d501c338548152f9d2728d383eec3e9cef16784.tar.bz2 |
libstdc++: Use <sys/socket.h> features conditionally [PR 100285]
This makes the uses of getsockopt and setsockopt in
<experimental/socket> conditional on the availability of <sys/socket.h>.
It also fixes a test to check for <sys/socket.h> instead of <socket.h>.
libstdc++-v3/ChangeLog:
PR libstdc++/100285
* include/experimental/socket (__basic_socket_impl::set_option)
(__basic_socket_impl::get_option) [!_GLIBCXX_HAVE_SYS_SOCKET_H]:
Just set error code.
* testsuite/experimental/net/socket/socket_base.cc: CHeck
for <sys/socket.h> not <socket.h>.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions