summaryrefslogtreecommitdiff
path: root/lib/mesa/src/util/tests/vma/vma_random_test.cpp
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-01-22 02:13:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-01-22 02:13:18 +0000
commitfdcc03929065b5bf5dd93553db219ea3e05c8c34 (patch)
treeca90dc8d9e89febdcd4160956c1b8ec098a4efc9 /lib/mesa/src/util/tests/vma/vma_random_test.cpp
parent3c9de4a7e13712b5696750bbd59a18c848742022 (diff)
Import Mesa 19.2.8
Diffstat (limited to 'lib/mesa/src/util/tests/vma/vma_random_test.cpp')
-rw-r--r--lib/mesa/src/util/tests/vma/vma_random_test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/mesa/src/util/tests/vma/vma_random_test.cpp b/lib/mesa/src/util/tests/vma/vma_random_test.cpp
index 1f194fcdf..9246176cb 100644
--- a/lib/mesa/src/util/tests/vma/vma_random_test.cpp
+++ b/lib/mesa/src/util/tests/vma/vma_random_test.cpp
@@ -34,7 +34,15 @@
#include <set>
#include <vector>
+#ifndef _WIN32
#include <err.h>
+#else
+#define errx(code, msg, ...) \
+ do { \
+ fprintf(stderr, msg, __VA_ARGS__); \
+ exit(code); \
+ } while (0);
+#endif
#include "vma.h"