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 <ccross@android.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Colin Cross 3 years ago committed by Gert Wollny
parent fb64b116e1
commit e1e6d3cb0a
  1. 1
      src/gallium/include/pipe/p_compiler.h

@ -37,6 +37,7 @@
#include <stddef.h>
#include <stdarg.h>
#include <limits.h>
#include <sys/types.h>
#if defined(_WIN32) && !defined(__WIN32__)

Loading…
Cancel
Save