summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lilv_test.c2
-rw-r--r--test/test.lv2/test.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c
index 5f879f9..0c48588 100644
--- a/test/lilv_test.c
+++ b/test/lilv_test.c
@@ -31,9 +31,11 @@
#ifdef _WIN32
# include <direct.h>
+# include <io.h>
# define mkdir(path, flags) _mkdir(path)
# define setenv(n, v, r) SetEnvironmentVariable((n), (v))
# define unsetenv(n) SetEnvironmentVariable((n), NULL)
+# define mkstemp(pat) _mktemp(pat)
#else
# include <dirent.h>
# include <unistd.h>
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"