Mesa (main): util/reallocarray: add errno.h include.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 28 21:19:01 UTC 2022


Module: Mesa
Branch: main
Commit: 9ba62ea8fba84781cc85467353d48fe5fbe945dd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ba62ea8fba84781cc85467353d48fe5fbe945dd

Author: Dave Airlie <airlied at redhat.com>
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 <vlee at freedesktop.org>
Reviewed-by: Yonggang Luo <luoyonggang at gmail.com>
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" {



More information about the mesa-commit mailing list