util/reallocarray: add errno.h include.
authorDave Airlie <airlied@redhat.com>
Thu, 28 Jul 2022 03:25:23 +0000 (13:25 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Jul 2022 20:47:28 +0000 (06:47 +1000)
Might fix OSX

Fixes: 419b52f1de6fd ("util: add reallocarray wrapper for win32")
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17779>

src/util/reallocarray.h

index d072c60..6020139 100644 (file)
@@ -27,6 +27,7 @@
 #if !defined(HAVE_REALLOCARRAY)
 
 #include <stdlib.h> // size_t
+#include <errno.h>
 
 #ifdef __cplusplus
 extern "C" {