util/reallocarray: add errno.h include.

Might fix OSX

Fixes: 419b52f1de ("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>
This commit is contained in:
Dave Airlie 2022-07-28 13:25:23 +10:00
parent d5dec00e94
commit 9ba62ea8fb
1 changed files with 1 additions and 0 deletions

View File

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