0d501c3385
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>.