summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-01 09:42:32 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-01 09:42:32 +0200
commit8ce42738648e70e562e7f1bbe925257cddf0b392 (patch)
treef1590beec744031f53d7aa362311b4c08cc6fa2c
parent7d8ef01e290438e5aa788edcec516cec77355d26 (diff)
downloadNim-8ce42738648e70e562e7f1bbe925257cddf0b392.tar.gz
os.nim: do not include and import ospaths
-rw-r--r--lib/pure/os.nim10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index bdf9813f9..fff71b818 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -29,14 +29,6 @@ else:
 import ospaths
 export ospaths
 
-when defined(posix):
-  when NoFakeVars:
-    const pathMax = 5000 # doesn't matter really. The concept of PATH_MAX
-                         # doesn't work anymore on modern OSes.
-  else:
-    var
-      pathMax {.importc: "PATH_MAX", header: "<stdlib.h>".}: cint
-
 proc c_remove(filename: cstring): cint {.
   importc: "remove", header: "<stdio.h>".}
 proc c_rename(oldname, newname: cstring): cint {.
@@ -1388,7 +1380,7 @@ proc moveDir*(source, dest: string) {.tags: [ReadIOEffect, WriteIOEffect].} =
       copyDir(source, dest)
       removeDir(source)
 
-include ospaths
+#include ospaths
 
 proc expandSymlink*(symlinkPath: string): string =
   ## Returns a string representing the path to which the symbolic link points.