diff options
author | Anatol Pomazau <anatol@google.com> | 2016-02-09 16:29:10 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-02-10 18:19:24 -0800 |
commit | e4565cca1a11031ac2a36f71cbed9cc804adde5e (patch) | |
tree | 1825b9ca1f7366b9680c483f2e6302db816a1fca | |
parent | c0c4402623506c9f0c532e05deb7d11ddbf17b2c (diff) | |
download | chrome-ec-e4565cca1a11031ac2a36f71cbed9cc804adde5e.tar.gz |
Add bionic compatibility
TEST=Build ectool for Android and run it
BUG=None
BRANCH=master
Signed-off-by: Anatol Pomazau <anatol@google.com>
Change-Id: I5f148adfc24591523a7d8c50817c8095072071c3
Reviewed-on: https://chromium-review.googlesource.com/327220
Commit-Ready: Anatol Pomazau <anatol@google.com>
Tested-by: Anatol Pomazau <anatol@google.com>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-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 */ |