[_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:
parent
1d438880ff
commit
e7b04123a9
3 changed files with 54 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue