summaryrefslogtreecommitdiff
path: root/util/kconfig/patches/0006-util-kconfig-Set-parameter-of-mkdir-to-only-one-for-.patch
blob: d6598ac5ce67aff1400df424b35bf2a8e4360c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From d470f1069744c3e6ef2e928217c1a4a23a87efa2 Mon Sep 17 00:00:00 2001
From: zbao <fishbaozi@gmail.com>
Date: Sat, 26 Sep 2015 06:20:53 -0400
Subject: [PATCH] util/kconfig: Set parameter of mkdir to only one for mingw.

The second parameter is to set file permissions for the directory, which
is not needed in mingw.

Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
---
 util/kconfig/confdata.c | 4 ++++
 1 file changed, 4 insertions(+)

Index: kconfig/confdata.c
===================================================================
--- kconfig.orig/confdata.c
+++ kconfig/confdata.c
@@ -164,6 +164,10 @@ struct conf_printer {
 	void (*print_comment)(FILE *, const char *, void *);
 };
 
+#ifdef __MINGW32__
+#define mkdir(_n,_p) mkdir((_n))
+#endif
+
 static void conf_warning(const char *fmt, ...)
 	__attribute__ ((format (printf, 1, 2)));