bugfix createDir for solaris
This commit is contained in:
parent
30bb68d48a
commit
ee9aee6c00
1 changed files with 4 additions and 1 deletions
|
|
@ -1174,7 +1174,10 @@ proc removeDir*(dir: string) {.rtl, extern: "nos$1", tags: [
|
||||||
rawRemoveDir(dir)
|
rawRemoveDir(dir)
|
||||||
|
|
||||||
proc rawCreateDir(dir: string) =
|
proc rawCreateDir(dir: string) =
|
||||||
when defined(unix):
|
when defined(solaris):
|
||||||
|
if mkdir(dir, 0o711) != 0'i32 and errno != EEXIST and errno != ENOSYS:
|
||||||
|
OSError(OSLastError())
|
||||||
|
elif defined(unix):
|
||||||
if mkdir(dir, 0o711) != 0'i32 and errno != EEXIST:
|
if mkdir(dir, 0o711) != 0'i32 and errno != EEXIST:
|
||||||
OSError(OSLastError())
|
OSError(OSLastError())
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue