[_WIN32] (posix_mkdir): New.

[_WIN32] (mkdir): Use it.  Last argument is no longer ignored, which
was a bug.  Move declaration to unistd.h, which isn't quite right, but
works for us.
This commit is contained in:
Ron Koenderink 2007-08-14 03:11:26 +00:00
parent 1d438880ff
commit e7b04123a9
3 changed files with 54 additions and 1 deletions

View file

@ -35,4 +35,12 @@
#define UNISTD_H
#include "getopt.h"
/*
* posixfile.c
*/
#define mkdir(dir, perm) posix_mkdir((dir), (perm))
extern int posix_mkdir(const char *dirname, int perm);
#endif /* UNISTD_H */