[DT-UTILS PATCH 2/2] common: Include sys/types.h header

Marcin Niestroj m.niestroj at grinn-global.com
Fri Jun 23 03:18:48 PDT 2017


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 at grinn-global.com>
---
 src/dt/common.h | 1 +
 1 file changed, 1 insertion(+)

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>
 
-- 
2.13.1




More information about the barebox mailing list