From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30557 invoked by alias); 30 Sep 2019 16:59:04 -0000 Mailing-List: contact libstdc++-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libstdc++-owner@gcc.gnu.org Received: (qmail 30544 invoked by uid 89); 30 Sep 2019 16:59:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1092, H*UA:Macintosh, H*u:Macintosh X-HELO: smtp.fgznet.ch Received: from smtp.fgznet.ch (HELO smtp.fgznet.ch) (157.161.14.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Sep 2019 16:59:03 +0000 Received: from [192.168.225.14] (dhclient-91-190-10-49.flashcable.ch [91.190.10.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgznet.ch (Postfix) with ESMTPSA id DCF25C58EC; Mon, 30 Sep 2019 18:58:59 +0200 (CEST) To: GCC Patches , libstdc++ From: Andreas Tobler Subject: [PATCH] Include netinet/in.h in include/experimental/internet Message-ID: Date: Mon, 30 Sep 2019 16:59:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00125.txt.bz2 Hi all, I'm going to commit the attached patch to trunk. It is preapproved by Jonathan. (via #irc) On FreeBSD the netinet/in.h header is not included by arpa/inet.h, so do the include if we have the _GLIBCXX_HAVE_NETINET_IN_H defined. This makes all the experimental/net/internet test cases pass here. Any comments? TIA, Andreas Commit one-liner: 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. Index: include/experimental/internet =================================================================== --- include/experimental/internet (revision 276342) +++ include/experimental/internet (working copy) @@ -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