diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-17 03:59:20 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-17 03:59:20 -0500 |
| commit | a23b1790b87a75e38fd00f9d537669f44718023d (patch) | |
| tree | 3f9c35fc6c439f14b66526dfa9d274344a017f64 /src/unalf.c | |
| parent | 1bdf2f116885f5597fda0c8741322fbd888ef55f (diff) | |
| download | unalf-a23b1790b87a75e38fd00f9d537669f44718023d.tar.gz | |
Add windows binary release target.
Diffstat (limited to 'src/unalf.c')
| -rw-r--r-- | src/unalf.c | 7 |
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); |
