aboutsummaryrefslogtreecommitdiff
path: root/src/unalf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unalf.c')
-rw-r--r--src/unalf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/unalf.c b/src/unalf.c
index 39685e7..6bfd94d 100644
--- a/src/unalf.c
+++ b/src/unalf.c
@@ -29,7 +29,12 @@ static void set_self(char *argv0) {
static void create_outdir(void) {
int r;
- r = mkdir(opts.outdir, 0777);
+ r =
+#if defined(__MINGW32__) || defined(__MINGW64__)
+ mkdir(opts.outdir);
+#else
+ mkdir(opts.outdir, 0777);
+#endif
if(r < 0 && errno != EEXIST) {
fprintf(stderr, "%s: ", self);
perror(opts.outdir);