summaryrefslogtreecommitdiffstats
path: root/src/util/tests
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-06-11 15:11:07 -0700
committerDylan Baker <[email protected]>2019-05-03 10:58:27 -0700
commita216aea7afeee2b4d3e8641b15b057a821c46098 (patch)
treec26790d7b3112caf6e46ccbf1adc65490a0bb586 /src/util/tests
parent5eb0f33e4f45becb02fb0dfe46d6855837312341 (diff)
tests/vma: fix build with MSVC
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util/tests')
-rw-r--r--src/util/tests/vma/vma_random_test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/tests/vma/vma_random_test.cpp b/src/util/tests/vma/vma_random_test.cpp
index 1f194fcdf92..9246176cbf2 100644
--- a/src/util/tests/vma/vma_random_test.cpp
+++ b/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"