Module: Mesa Branch: main Commit: 9ba62ea8fba84781cc85467353d48fe5fbe945dd URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ba62ea8fba84781cc85467353d48fe5fbe945dd
Author: Dave Airlie <[email protected]> Date: Thu Jul 28 13:25:23 2022 +1000 util/reallocarray: add errno.h include. Might fix OSX Fixes: 419b52f1de6fd ("util: add reallocarray wrapper for win32") Tested-by: Vinson Lee <[email protected]> Reviewed-by: Yonggang Luo <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17779> --- src/util/reallocarray.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/reallocarray.h b/src/util/reallocarray.h index d072c60ba3f..602013919bc 100644 --- a/src/util/reallocarray.h +++ b/src/util/reallocarray.h @@ -27,6 +27,7 @@ #if !defined(HAVE_REALLOCARRAY) #include <stdlib.h> // size_t +#include <errno.h> #ifdef __cplusplus extern "C" {
