diff options
-rw-r--r-- | util/ectool_keyscan.c | 1 | ||||
-rw-r--r-- | util/lock/csem.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/util/ectool_keyscan.c b/util/ectool_keyscan.c index 6029e0b09a..8b398b145b 100644 --- a/util/ectool_keyscan.c +++ b/util/ectool_keyscan.c @@ -10,6 +10,7 @@ #include <termios.h> #include <unistd.h> #include <sys/stat.h> +#include <endian.h> #include "comm-host.h" #include "keyboard_config.h" diff --git a/util/lock/csem.c b/util/lock/csem.c index bdb49fd1da..2ad3d5d873 100644 --- a/util/lock/csem.c +++ b/util/lock/csem.c @@ -45,7 +45,7 @@ #include "csem.h" -#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) +#if (defined(__BIONIC__) || defined(__GNU_LIBRARY__)) && !defined(_SEM_SEMUN_UNDEFINED) /* union semun is defined by including <sys/sem.h> */ #else /* according to X/OPEN we have to define it ourselves */ |