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 [thread overview]
Message-ID: <20190226170910.23479-1-luca.boccassi@gmail.com> (raw)
From: Luca Boccassi <luca.boccassi@microsoft.com>
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 <luca.boccassi@microsoft.com>
---
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 <linux/fs.h>
#include <stdint.h>
#include <syslog.h>
+#include <sys/types.h>
#include <stdbool.h>
#include <errno.h>
--
2.20.1
reply other threads:[~2019-02-26 17:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190226170910.23479-1-luca.boccassi@gmail.com \
--to=luca.boccassi@gmail.com \
--cc=linux-integrity@vger.kernel.org \
--cc=zohar@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).