Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1l0Agx-00084T-5x for mharc-qemu-trivial@gnu.org; Thu, 14 Jan 2021 17:02:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Agv-00083W-As for qemu-trivial@nongnu.org; Thu, 14 Jan 2021 17:02:05 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:50068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l0Agr-0006i3-9i for qemu-trivial@nongnu.org; Thu, 14 Jan 2021 17:02:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610661719; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MWbvcMqKvDq1K2nxaaiJPUZSN5GVEYvGsXMyiY0q5EE=; b=fkgYBmywJv9dnukFrLT77LXRaVQXanU9iLPuWsQeQS0/4Iv7rRqfvchrFHiwXOusMgqXw8 34H7+k2VOwOO9IUVE+qROBBvSYulnJB56FezhusUYQsMdc6L1l/0jqkQduu1Ksx676oDiA T1xAbVqMUa3568h73GNm8vY6k5n32Pc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-56-WeBh4f3HO6yqxVcUpEpjyw-1; Thu, 14 Jan 2021 17:01:55 -0500 X-MC-Unique: WeBh4f3HO6yqxVcUpEpjyw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B33E107ACF7; Thu, 14 Jan 2021 22:01:54 +0000 (UTC) Received: from [10.10.120.151] (ovpn-120-151.rdu2.redhat.com [10.10.120.151]) by smtp.corp.redhat.com (Postfix) with ESMTP id B1B1A63BA7; Thu, 14 Jan 2021 22:01:53 +0000 (UTC) Subject: Re: [PATCH v2] osdep.h: Remove include To: Michael Forney , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Thomas Huth References: <20201027003848.10920-1-mforney@mforney.org> <20210113215600.16100-1-mforney@mforney.org> From: John Snow Message-ID: <35abc8a5-b463-a7f0-95a1-b6ab7fd35522@redhat.com> Date: Thu, 14 Jan 2021 17:01:53 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210113215600.16100-1-mforney@mforney.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jsnow@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -32 X-Spam_score: -3.3 X-Spam_bar: --- X-Spam_report: (-3.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.248, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.237, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2021 22:02:05 -0000 On 1/13/21 4:56 PM, Michael Forney wrote: > Prior to 2a4b472c3c, sys/signal.h was only included on OpenBSD > (apart from two .c files). The POSIX standard location for this > header is just and in fact, OpenBSD's signal.h includes > sys/signal.h itself. > > Unconditionally including on musl causes warnings > for just about every source file: > > /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] > 1 | #warning redirecting incorrect #include to > | ^~~~~~~ > > Since there don't seem to be any platforms which require including > in addition to , and some platforms like > Haiku lack it completely, just remove it. > > Tested building on OpenBSD after removing this include. > > Signed-off-by: Michael Forney > Reviewed-by: Eric Blake I ran into this myself when testing an Alpine linux build with musl. Seems to certainly cut down on the number of errors seen when building in Alpine. There's still a few more, but there's definitely less. Tested-by: John Snow