From e1e6d3cb0a3987e7ce539c21c0c244e9a434080b Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 15 Sep 2021 09:54:16 -0700 Subject: [PATCH] Include sys/types.h in p_compiler.h p_compiler.h includes stdlib.h which, when compiling against glibc, transitively includes sys/types.h. The rest of the build relies on this include in order to provide the uint typedef. Musl's stdlib.h does not include sys/types.h, causing a missing definition of uint. Include sys/types.h directly in p_compiler.h. Signed-off-by: Colin Cross Reviewed-by: Gert Wollny --- src/gallium/include/pipe/p_compiler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h index faba6d4..8156dd3 100644 --- a/src/gallium/include/pipe/p_compiler.h +++ b/src/gallium/include/pipe/p_compiler.h @@ -37,6 +37,7 @@ #include #include #include +#include #if defined(_WIN32) && !defined(__WIN32__)