summary refs log tree commit diff stats
path: root/lib/posix/posix.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/posix/posix.nim')
-rwxr-xr-xlib/posix/posix.nim15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim
index 58801d83e..f8d49ddb4 100755
--- a/lib/posix/posix.nim
+++ b/lib/posix/posix.nim
@@ -68,10 +68,19 @@ const
   STDIN_FILENO* = 0  ## File number of stdin;
   STDOUT_FILENO* = 1 ## File number of stdout; 
 
+when defined(endb):
+  # to not break bootstrapping again ...
+  type
+    TDIR* {.importc: "DIR", header: "<dirent.h>", 
+            final, pure, incompleteStruct.} = object
+      ## A type representing a directory stream. 
+else:
+  type
+    TDIR* {.importc: "DIR", header: "<dirent.h>", 
+            final, pure.} = object
+      ## A type representing a directory stream.   
+  
 type
-  TDIR* {.importc: "DIR", header: "<dirent.h>", final, pure.} = object
-    ## A type representing a directory stream. 
-
   Tdirent* {.importc: "struct dirent", 
              header: "<dirent.h>", final, pure.} = object ## dirent_t struct
     d_ino*: TIno  ## File serial number.