bugfix createDir for solaris

This commit is contained in:
Araq
2013-08-07 01:36:15 +02:00
parent 30bb68d48a
commit ee9aee6c00

View File

@@ -1174,7 +1174,10 @@ proc removeDir*(dir: string) {.rtl, extern: "nos$1", tags: [
rawRemoveDir(dir)
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:
OSError(OSLastError())
else: