From patchwork Tue Feb 26 17:09:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Boccassi X-Patchwork-Id: 10830643 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 256A41575 for ; Tue, 26 Feb 2019 17:09:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 024C32D211 for ; Tue, 26 Feb 2019 17:09:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E970C2D21D; Tue, 26 Feb 2019 17:09:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9050A2D211 for ; Tue, 26 Feb 2019 17:09:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727801AbfBZRJf (ORCPT ); Tue, 26 Feb 2019 12:09:35 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39782 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726602AbfBZRJe (ORCPT ); Tue, 26 Feb 2019 12:09:34 -0500 Received: by mail-wm1-f68.google.com with SMTP id z84so2974212wmg.4 for ; Tue, 26 Feb 2019 09:09:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HLvP6xPvgt3zZ6L60RkM8gk0sE5u2f5QaUdGGopfzUo=; b=qMzhOoY2JHBYU27GAMqtR1nR18rPflsCFInTUZgFD6H3VfyBZjH+oESj40n+QHmZtZ wiWzI5AWyd93an1b1Og/ZvgVKKavlz2CS/Is7Ox6gvrPgicCLD9+QNsEXfrCibabWw1g nPaCe32KdTE7588I8mlHybkTm7Hlc2zB1Z3wAMh6mstCg/oCL+OND4RS7fyaNwl6JziD RITNjMcZUuIRbpsQ/ei8gRdvdmKMbZFvP3IICnIErxHtczgIqak4JVWMhm0et1bBvvXf 6lqApTUrkMr1YUVIT8VKobz5EabjCiGgA7ElnbUgcNVXW6AQ4Z/xKp3lEaOY6K9UCFAI kq6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HLvP6xPvgt3zZ6L60RkM8gk0sE5u2f5QaUdGGopfzUo=; b=WBWulFzng5d8I1A6akt/cecZAGIjP+Nd6+vNmEKfgxvrtDNd6xkhjh1Enjwjece4fg NNyZC6Y3GbTrAqiP5rcD6RD4kmVhJNUHRPswLeJnf9zGjtoJIKSvYpathFflSi0/53fN eVBN+jQbhpL0HjBJT2pQwdWMbh3aMSUVz4LXlwV5tL9G0N0WpWU9NWc7K+DpfpYOByKV DP003tiXF5CvhQrjUWjw4TcRfCgwjjXGNYyfkouKPtk4Mum629jGfB4n1Y/PexInKNEd 1pwW+NZ/An4XM9wRqG+t93aqvs1TIVimRGLT0WxBhdTciw/6nYqFPcVkhkz8fECWiUWA nD4g== X-Gm-Message-State: AHQUAuYhM7PZoj8dIpUVJNwruqa5SrnQumgQw3GYQHqdOjO5EznmNV3q H4fiS8hHLiF6RyUuRxJCVNxtRucDS0c= X-Google-Smtp-Source: AHgI3IbNf9NKqQBz06YmZMWc0SbXiQrEUJe/riKBWPdKpo1DM2fNash+Xhjx9Um7HDRZ98MeuTgPkg== X-Received: by 2002:a1c:80c4:: with SMTP id b187mr3137222wmd.23.1551200972483; Tue, 26 Feb 2019 09:09:32 -0800 (PST) Received: from localhost ([2a01:4b00:f419:6f00:b00c:66c8:99df:336]) by smtp.gmail.com with ESMTPSA id y8sm7603406wrm.8.2019.02.26.09.09.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Feb 2019 09:09:31 -0800 (PST) From: luca.boccassi@gmail.com To: linux-integrity@vger.kernel.org Cc: zohar@linux.ibm.com Subject: [PATCH ima-evm-utils] Include sys/types.h in header to fix build with musl Date: Tue, 26 Feb 2019 17:09:10 +0000 Message-Id: <20190226170910.23479-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Luca Boccassi Building a third program that depends on libimaevm with musl fails, as the imaevm.h uses uid_t and gid_t without including sys/types.h: <..>/sysroot/usr/include/imaevm.h:90:2: error: unknown type name 'uid_t' uid_t uid; Including sys/types.h fixes building with musl and does not affect building with glibc. Signed-off-by: Luca Boccassi --- src/imaevm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imaevm.h b/src/imaevm.h index 795966a..d85db0d 100644 --- a/src/imaevm.h +++ b/src/imaevm.h @@ -44,6 +44,7 @@ #include #include #include +#include #include #include