From nobody Fri Apr 26 08:21:34 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1603763272; cv=none; d=zohomail.com; s=zohoarc; b=eIDY7yjEFvsVJcMdCVCMxh/IkBSD1CHQsRJZi5xbFq659C4t0vAjmG+k3f6bjb/p9X+FicUzTkStAYgN3Abf+XTfdoqdN91K22XsxOcoo2DCuj2xgNuXhgY5i27iY5hpi39ckTKasq99GM62blapdS47mblFrsDcVgb59vmyDBU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603763272; h=Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=4YLNaLLNgtQnOYBKMl4SRnafFnXBnDW9fs6MMtIQGek=; b=Es3RaYCZdXcU/JOX2h/2xIhwxI44YoknRjiEeVQpvUEp0Hom4whn7nWvgKHpfEhcnQGLuwVyRziVILFyIR8HaI/kMjQ330x1UJgMcQ3f9I98XD7JyocJ9noYR8NxzdaWlKd+hN1QvibBXhSxN2DB3D5ZCL333gX3zGBzwor3AFw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16037632720421009.7431025859331; Mon, 26 Oct 2020 18:47:52 -0700 (PDT) Received: from localhost ([::1]:43246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXE5V-0000av-FN for importer@patchew.org; Mon, 26 Oct 2020 21:47:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXD1a-0007dF-Rf for qemu-devel@nongnu.org; Mon, 26 Oct 2020 20:39:44 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:35683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXD1W-0008EG-HM for qemu-devel@nongnu.org; Mon, 26 Oct 2020 20:39:41 -0400 Received: by mail-pg1-x541.google.com with SMTP id f38so7040533pgm.2 for ; Mon, 26 Oct 2020 17:39:36 -0700 (PDT) Received: from localhost ([2601:647:5180:4570:16dd:a9ff:fee7:6b79]) by smtp.gmail.com with ESMTPSA id o22sm7810495pgb.83.2020.10.26.17.39.33 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 26 Oct 2020 17:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=4YLNaLLNgtQnOYBKMl4SRnafFnXBnDW9fs6MMtIQGek=; b=nyVhqIT5PqyFDa9p1uWfyQZohFgTKIdGWc7f6g88XNInACqrXWLt+Zz/SfOVSClcUU HyBirlVSKvAhyxkVw7qF0q46sjO4GJsCErvt3i9JOpAPZJMHie6p5InBhiAxznu7WWQl aFwgCPObMXSikZ4HegSVAhZe80qJnMkkAAy78gduUXRoA4mVlEjlH6e4Di/VePxUqAkt GjWV0mh8u+e+DSonVDyne6MNhhAaaCZ4r2RmKc9I8qUn+EexlJzjaLNZ3ZkW/tYMbNOL MpVn1gfEN7gQ/Z2G7T9IuymilMj0HGTOB8hbXYIIBK4uSAoJQ8aQUp/iST849jO9SZhM zgHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=4YLNaLLNgtQnOYBKMl4SRnafFnXBnDW9fs6MMtIQGek=; b=n3u8hYjl6k3FEHhv+p8A1TF8dr60bPr3BVhuX33LBqMlwKIly8mxj28HDSPjOVK/C1 5YPRPoZqTgcJVV0C90QsUzw+4vcF/Y/W/Yx/0s4ls/X3dkum86NGyWFHtzeS7hcvemXI TKAq3IrWWWnOS0MgN7wI7SIBj6ni3ar8nXToNj4atwikjKUQVRLUfq62weFOhm9VxrBS E36ervJ0HTxuIjKtdD78wrng24c60MP4bYGaOwlR+CED3KTGybkJD8+epSnZZsrrZ+JH P5EhQhXHYo8oLPj/ZSOH/8Q4p9K3DZ3tBRhBq4urNpBUbFnKE19000qyUPhO2Vsu6PdG eg/g== X-Gm-Message-State: AOAM530BNe2OHnuNOuqqFXWiOwW9af9x+Ol5HGSNn39npjKCa46kZXo1 BEdeoikLgcpMaanLflFTbzpylZ8Yc3hTy4Sac/E= X-Google-Smtp-Source: ABdhPJxv3xORedXY1rKJOkEglq+w2ATAGjv4pr3Iyjia/ojf94gYModuopqA/Uj9Hx5ncgW6oFgMIw== X-Received: by 2002:a62:ab0e:0:b029:164:1790:a11b with SMTP id p14-20020a62ab0e0000b02901641790a11bmr275164pff.73.1603759174453; Mon, 26 Oct 2020 17:39:34 -0700 (PDT) From: Michael Forney To: qemu-devel@nongnu.org Subject: [PATCH] osdep.h: Remove include Date: Mon, 26 Oct 2020 17:38:48 -0700 Message-Id: <20201027003848.10920-1-mforney@mforney.org> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::541; envelope-from=mforney@mforney.org; helo=mail-pg1-x541.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 26 Oct 2020 21:45:19 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @mforney-org.20150623.gappssmtp.com) Content-Type: text/plain; charset="utf-8" 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 #i= nclude 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 --- configure | 10 ---------- include/qemu/osdep.h | 4 ---- 2 files changed, 14 deletions(-) diff --git a/configure b/configure index 55e07c82dd..7b57456052 100755 --- a/configure +++ b/configure @@ -3095,13 +3095,6 @@ if check_include "libdrm/drm.h" ; then have_drm_h=3Dyes fi =20 -######################################### -# sys/signal.h check -have_sys_signal_h=3Dno -if check_include "sys/signal.h" ; then - have_sys_signal_h=3Dyes -fi - ########################################## # VTE probe =20 @@ -6182,9 +6175,6 @@ fi if test "$have_openpty" =3D "yes" ; then echo "HAVE_OPENPTY=3Dy" >> $config_host_mak fi -if test "$have_sys_signal_h" =3D "yes" ; then - echo "HAVE_SYS_SIGNAL_H=3Dy" >> $config_host_mak -fi =20 # Work around a system header bug with some kernel/XFS header # versions where they both try to define 'struct fsxattr': diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index f9ec8c84e9..a434382c58 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -104,10 +104,6 @@ extern int daemon(int, int); #include #include =20 -#ifdef HAVE_SYS_SIGNAL_H -#include -#endif - #ifndef _WIN32 #include #else --=20 2.29.0