aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-31 09:57:10 -0400
committerDavid Robillard <d@drobilla.net>2022-05-31 09:57:10 -0400
commit4c5c936646bf3be8025e5d82529707b816893361 (patch)
tree5af7fd638b63ce69e2196e7f88b9a5f871394583
parentf43249e582dd257e533dce71a5cd34785d41f7ef (diff)
downloadjalv-4c5c936646bf3be8025e5d82529707b816893361.tar.gz
jalv-4c5c936646bf3be8025e5d82529707b816893361.tar.bz2
jalv-4c5c936646bf3be8025e5d82529707b816893361.zip
Fix build on MacOS
-rw-r--r--src/jalv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jalv.c b/src/jalv.c
index f41423c..7930c27 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -58,6 +58,8 @@
#ifdef _WIN32
# include <io.h> // for _mktemp
# define snprintf _snprintf
+#else
+# include <unistd.h> // for mkdtemp on Darwin
#endif
#include <assert.h>