From b54453598a1b25f249d371ddfdc02304b95e9d93 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Mon, 30 Sep 2019 22:26:57 +0200 Subject: [PATCH] Include netinet/in.h in include/experimental/internet 2019-09-30 Andreas Tobler * include/experimental/internet: Include netinet/in.h if we have _GLIBCXX_HAVE_NETINET_IN_H defined. From-SVN: r276374 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/experimental/internet | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6c50a1ce0fb..8ed43091161 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2019-09-30 Andreas Tobler + * 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 929a747a250..eafabf64e0d 100644 --- a/libstdc++-v3/include/experimental/internet +++ b/libstdc++-v3/include/experimental/internet @@ -51,6 +51,9 @@ #ifdef _GLIBCXX_HAVE_ARPA_INET_H # include // inet_ntop #endif +#ifdef _GLIBCXX_HAVE_NETINET_IN_H +# include // IPPROTO_IP +#endif #ifdef _GLIBCXX_HAVE_NETINET_TCP_H # include // TCP_NODELAY #endif -- 2.30.2