diff options
author | Andreas Tobler <andreast@gcc.gnu.org> | 2019-09-30 22:26:57 +0200 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2019-09-30 22:26:57 +0200 |
commit | b54453598a1b25f249d371ddfdc02304b95e9d93 (patch) | |
tree | d9601a8206e457cd499f82dac75af654739f5849 | |
parent | 4aec29912502ef3a49c67f3ee7dd0daa7230985c (diff) | |
download | gcc-b54453598a1b25f249d371ddfdc02304b95e9d93.zip gcc-b54453598a1b25f249d371ddfdc02304b95e9d93.tar.gz gcc-b54453598a1b25f249d371ddfdc02304b95e9d93.tar.bz2 |
Include netinet/in.h in include/experimental/internet
2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
* include/experimental/internet: Include netinet/in.h if we have
_GLIBCXX_HAVE_NETINET_IN_H defined.
From-SVN: r276374
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/internet | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6c50a1c..8ed4309 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org> + * include/experimental/internet: Include netinet/in.h if we have + _GLIBCXX_HAVE_NETINET_IN_H defined. + * testsuite/ext/special_functions/airy_ai/check_nan.cc: Ignore the FreeBSD warning about lower advertised precision of tgammal. * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise. diff --git a/libstdc++-v3/include/experimental/internet b/libstdc++-v3/include/experimental/internet index 929a747..eafabf6 100644 --- a/libstdc++-v3/include/experimental/internet +++ b/libstdc++-v3/include/experimental/internet @@ -51,6 +51,9 @@ #ifdef _GLIBCXX_HAVE_ARPA_INET_H # include <arpa/inet.h> // inet_ntop #endif +#ifdef _GLIBCXX_HAVE_NETINET_IN_H +# include <netinet/in.h> // IPPROTO_IP +#endif #ifdef _GLIBCXX_HAVE_NETINET_TCP_H # include <netinet/tcp.h> // TCP_NODELAY #endif |