diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-08-30 13:33:09 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-08-30 13:33:09 +0200 |
commit | 28da04c1f7336a4eecc22e3eaa85cb9fe1b30e77 (patch) | |
tree | 2a89aa6190ec146e81139ba9f0ca98b241b2a706 /lib/posix/posix_other.nim | |
parent | 80fab1d861f7801b9ccaac6ef4d7ff38defa207b (diff) | |
download | Nim-28da04c1f7336a4eecc22e3eaa85cb9fe1b30e77.tar.gz |
Android support: put Termux specific dependencies behind a -d:termux switch
Diffstat (limited to 'lib/posix/posix_other.nim')
-rw-r--r-- | lib/posix/posix_other.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/posix/posix_other.nim b/lib/posix/posix_other.nim index 7738d710c..69f6acfb8 100644 --- a/lib/posix/posix_other.nim +++ b/lib/posix/posix_other.nim @@ -15,7 +15,7 @@ const hasSpawnH = not defined(haiku) # should exist for every Posix system nowadays hasAioH = defined(linux) -when defined(linux): +when defined(linux) and not defined(android): # On Linux: # timer_{create,delete,settime,gettime}, # clock_{getcpuclockid, getres, gettime, nanosleep, settime} lives in librt @@ -46,7 +46,7 @@ type d_ino*: Ino ## File serial number. when defined(dragonfly): # DragonflyBSD doesn't have `d_reclen` field. - d_type*: uint8 + d_type*: uint8 elif defined(linux) or defined(macosx) or defined(freebsd) or defined(netbsd) or defined(openbsd) or defined(genode): d_reclen*: cshort ## Length of this record. (not POSIX) |