[PATCH ima-evm-utils] Include sys/types.h in header to fix build with musl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luca Boccassi <luca.boccassi@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
---
 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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux