* [PATCH ima-evm-utils] Include sys/types.h in header to fix build with musl
@ 2019-02-26 17:09 luca.boccassi
0 siblings, 0 replies; only message in thread
From: luca.boccassi @ 2019-02-26 17:09 UTC (permalink / raw)
To: linux-integrity; +Cc: zohar
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-02-26 17:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-26 17:09 [PATCH ima-evm-utils] Include sys/types.h in header to fix build with musl luca.boccassi
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).