summaryrefslogtreecommitdiffstats
path: root/test/test.lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-07-10 21:50:48 +0200
committerDavid Robillard <d@drobilla.net>2018-07-10 21:50:48 +0200
commit06ccf8c3eb72ef6aa1d7eca54434870cd35ef451 (patch)
treef55a845b64255f204b17d6fd94ebc04cc26f96a1 /test/test.lv2
parentcea8fb3e487e0c2605061e3bf772db0455fba6bb (diff)
downloadlilv-06ccf8c3eb72ef6aa1d7eca54434870cd35ef451.tar.gz
lilv-06ccf8c3eb72ef6aa1d7eca54434870cd35ef451.tar.bz2
lilv-06ccf8c3eb72ef6aa1d7eca54434870cd35ef451.zip
Fix Windows/MSVC build
Diffstat (limited to 'test/test.lv2')
-rw-r--r--test/test.lv2/test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test.lv2/test.c b/test/test.lv2/test.c
index 2850f0e..30677f1 100644
--- a/test/test.lv2/test.c
+++ b/test/test.lv2/test.c
@@ -27,6 +27,11 @@
#include "lv2/lv2plug.in/ns/ext/urid/urid.h"
#include "lv2/lv2plug.in/ns/lv2core/lv2.h"
+#ifdef _WIN32
+# include <io.h>
+# define mkstemp(pat) _mktemp(pat)
+#endif
+
#define TEST_URI "http://example.org/lilv-test-plugin"
#define TMP_TEMPLATE "lilv_testXXXXXX"