From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id E49C83954836 for ; Thu, 8 Apr 2021 19:26:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E49C83954836 Received: from vapier (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E128335D98; Thu, 8 Apr 2021 19:26:05 +0000 (UTC) Date: Thu, 8 Apr 2021 15:26:03 -0400 From: Mike Frysinger To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 2/2] Add system includes in sim Message-ID: Mail-Followup-To: Tom Tromey , gdb-patches@sourceware.org References: <20210408164436.2165323-1-tom@tromey.com> <20210408164436.2165323-3-tom@tromey.com> <87y2dsk4og.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87y2dsk4og.fsf@tromey.com> X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2021 19:26:08 -0000 On 08 Apr 2021 12:32, Tom Tromey wrote: > >> * func.c: Include sys/time.h. > > Mike> this one isn't in C99. we seem to sometimes protect against it, but not > Mike> always. if we go by gnulib's notes, it seems like we should just assume > Mike> it everywhere. wdyt ? > Mike> https://www.gnu.org/software/gnulib/manual/html_node/sys_002ftime_002eh.html#sys_002ftime_002eh > > Makes sense to me. > > Also, BFD removed the check for time.h, among other things, in commit > 83c79df86. If BFD can remove it, I think it's fine. we removed time.h checks in 68ed2854284d415a71efd856a40343f550881ede in sim since it's in C99. this question is about sys/time.h which is different. -mike