[PATCH] scripts: compiler.h: include <sys/types.h>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ulong is not a standard type, so it has to be defined explicitly.

Signed-off-by: Robert Karszniewicz <avoidr@xxxxxxxxx>
---
This fixes compile errors on musl when building the sandbox.

 scripts/compiler.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/compiler.h b/scripts/compiler.h
index 0ad25f9e8..c932f715c 100644
--- a/scripts/compiler.h
+++ b/scripts/compiler.h
@@ -62,6 +62,7 @@ typedef unsigned int  uint;
       defined(__NetBSD__) || defined(__DragonFly__)
 # include <sys/endian.h>
 #else /* assume Linux */
+# include <sys/types.h>
 # include <endian.h>
 # include <byteswap.h>
 #endif
-- 
2.28.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux