about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/compression/lzip/mingw-mkdir-one-argument.patch
blob: efa0d8e3a067dcfb33af1018f1d5f050a05a0407 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- lzip-1.24/main.cc     2024-01-26 00:08:47.000000000 +0100
+++ lzip-1.24.1/src/main.cc   2024-02-06 16:04:00.000000000 +0100
@@ -42,8 +42,10 @@
 #if defined __MSVCRT__ || defined __OS2__ || defined __DJGPP__
 #include <io.h>
 #if defined __MSVCRT__
+#include <direct.h>
 #define fchmod(x,y) 0
 #define fchown(x,y,z) 0
+#define mkdir(name,mode) _mkdir(name)
 #define strtoull std::strtoul
 #define SIGHUP SIGTERM
 #define S_ISSOCK(x) 0