diff options
author | Marcin Niestroj <m.niestroj@grinn-global.com> | 2017-06-23 12:18:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-06-27 08:32:34 +0200 |
commit | 2992ad0dd173659ea7d0c260051f6bf1d239ef47 (patch) | |
tree | 838c83ab91bc869ecb7047d1a29ffe6a72ef40d8 /src | |
parent | ba0b35b84bee76fae08171266d68e85da65f778c (diff) | |
download | dt-utils-2992ad0dd173659ea7d0c260051f6bf1d239ef47.tar.gz dt-utils-2992ad0dd173659ea7d0c260051f6bf1d239ef47.tar.xz |
common: Include sys/types.h header
Build with musl library fails with following error:
In file included from src/crypto/sha1.c:21:0:
./src/digest.h:95:10: error: unknown type name ‘ulong’
ulong start, ulong size);
...
Fix that by including sys/types.h header in common.h, so ulong type
is defined with musl library.
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/dt/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dt/common.h b/src/dt/common.h index 992e28f..1425c53 100644 --- a/src/dt/common.h +++ b/src/dt/common.h @@ -13,6 +13,7 @@ #include <sys/ioctl.h> #include <sys/stat.h> +#include <sys/types.h> #include <mtd/mtd-abi.h> |