diff --git a/INSTALL.md b/INSTALL.md index 42675d1bf..3ab606bd1 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -152,7 +152,7 @@ on Ubuntu; currently supported versions are 14.04, 15.10 and 16.04. 1. The first thing to do is install required packages: - `sudo apt-get install autoconf libtool pkg-config clang systemtap-sdt-dev libbsd-dev` + `sudo apt-get install autoconf libtool pkg-config clang systemtap-sdt-dev libbsd-dev linux-libc-dev` Note: compiling libdispatch requires clang 3.8 or better and the gold linker. If the default clang on your Ubuntu version is diff --git a/src/shims/lock.h b/src/shims/lock.h index 22382cff6..a22517e6e 100644 --- a/src/shims/lock.h +++ b/src/shims/lock.h @@ -89,7 +89,9 @@ _dispatch_lock_has_failed_trylock(dispatch_lock lock_value) #elif defined(__linux__) #include +#if !defined(__x86_64__) && !defined(__i386__) #include +#endif #include #include /* For SYS_xxx definitions */