* [PATCH] scripts: compiler.h: include <sys/types.h>
@ 2020-09-19 20:41 Robert Karszniewicz
2020-09-21 5:52 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Robert Karszniewicz @ 2020-09-19 20:41 UTC (permalink / raw)
To: barebox
ulong is not a standard type, so it has to be defined explicitly.
Signed-off-by: Robert Karszniewicz <avoidr@posteo.de>
---
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] scripts: compiler.h: include <sys/types.h>
2020-09-19 20:41 [PATCH] scripts: compiler.h: include <sys/types.h> Robert Karszniewicz
@ 2020-09-21 5:52 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-09-21 5:52 UTC (permalink / raw)
To: Robert Karszniewicz; +Cc: barebox
On Sat, Sep 19, 2020 at 10:41:33PM +0200, Robert Karszniewicz wrote:
> ulong is not a standard type, so it has to be defined explicitly.
>
> Signed-off-by: Robert Karszniewicz <avoidr@posteo.de>
> ---
> This fixes compile errors on musl when building the sandbox.
>
> scripts/compiler.h | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks
Sascha
>
> 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@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-21 5:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-19 20:41 [PATCH] scripts: compiler.h: include <sys/types.h> Robert Karszniewicz
2020-09-21 5:52 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox