summaryrefslogtreecommitdiffstats
path: root/lib/replace/system
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-04-20 15:39:48 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-04-20 16:25:16 +0200
commite5233ccf9e32cd5d399f91512d7f310d43558e31 (patch)
treee4ac4d6c8eb651c1564cc3fe8b3f8e2a4bcf5f7b /lib/replace/system
parentfbf4293d7ec80b93d2b289698f85641dbf26750a (diff)
downloadsamba-e5233ccf9e32cd5d399f91512d7f310d43558e31.tar.gz
samba-e5233ccf9e32cd5d399f91512d7f310d43558e31.tar.xz
samba-e5233ccf9e32cd5d399f91512d7f310d43558e31.zip
Cope with the fact that only _mkdir() exists on Windows and that it
doesn't take a mode argument.
Diffstat (limited to 'lib/replace/system')
-rw-r--r--lib/replace/system/filesys.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/system/filesys.h b/lib/replace/system/filesys.h
index 4bf1f648650..1cf6f231b7b 100644
--- a/lib/replace/system/filesys.h
+++ b/lib/replace/system/filesys.h
@@ -179,4 +179,8 @@
#define SEEK_SET 0
#endif
+#ifdef _WIN32
+#define mkdir(d,m) _mkdir(d)
+#endif
+
#endif