summary refs log tree commit diff stats
path: root/lib/pure/concurrency
diff options
context:
space:
mode:
authorLeorize <alaviss@users.noreply.github.com>2018-09-25 11:52:29 +0700
committerLeorize <alaviss@users.noreply.github.com>2018-09-25 15:47:23 +0700
commitbd3463f77616305b80c68b9f4260e088643668e5 (patch)
tree34c2a0b8d957632c4d2807b15161d20f1b55b286 /lib/pure/concurrency
parent548fc778c9b7048f474bf53c5d665bb8425e3343 (diff)
downloadNim-bd3463f77616305b80c68b9f4260e088643668e5.tar.gz
cpuinfo: fix compilation for 32bit Haiku
Diffstat (limited to 'lib/pure/concurrency')
-rw-r--r--lib/pure/concurrency/cpuinfo.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/concurrency/cpuinfo.nim b/lib/pure/concurrency/cpuinfo.nim
index 541265da9..4f681f980 100644
--- a/lib/pure/concurrency/cpuinfo.nim
+++ b/lib/pure/concurrency/cpuinfo.nim
@@ -44,12 +44,12 @@ when defined(genode):
     importcpp: "@->cpu().affinity_space().total()".}
 
 when defined(haiku):
-  {.emit: "#include <OS.h>".}
   type
-    SystemInfo {.importc: "system_info", bycopy.} = object
+    SystemInfo {.importc: "system_info", header: "<OS.h>".} = object
       cpuCount {.importc: "cpu_count".}: uint32
 
-  proc getSystemInfo(info: ptr SystemInfo): int32 {.importc: "get_system_info".}
+  proc getSystemInfo(info: ptr SystemInfo): int32 {.importc: "get_system_info",
+                                                    header: "<OS.h>".}
 
 proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
   ## returns the numer of the processors/cores the machine has.