summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-10-11 13:16:51 +0200
committerAraq <rumpf_a@web.de>2014-10-11 13:16:51 +0200
commit753d18d66c978b192b5c4fcf9b86c755c3fa9266 (patch)
treebd4f49fceae454f210ced063cc2bc140e850fc53 /lib/pure
parent6c9730b3534927ac2bdd4ec7c77e0d37bba7aa2e (diff)
downloadNim-753d18d66c978b192b5c4fcf9b86c755c3fa9266.tar.gz
minor cleanup for cpuinfo
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/concurrency/cpuinfo.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/concurrency/cpuinfo.nim b/lib/pure/concurrency/cpuinfo.nim
index cd8e5b14a..bd10a416f 100644
--- a/lib/pure/concurrency/cpuinfo.nim
+++ b/lib/pure/concurrency/cpuinfo.nim
@@ -26,14 +26,13 @@ when defined(openbsd) or defined(netbsd):
   {.emit:"#include <sys/param.h>".}
 
 when defined(macosx) or defined(bsd):
-  {.emit:"#include <sys/sysctl.h>".}
   const
     CTL_HW = 6
     HW_AVAILCPU = 25
     HW_NCPU = 3
   proc sysctl(x: ptr array[0..3, cint], y: cint, z: pointer,
               a: var csize, b: pointer, c: int): cint {.
-             importc: "sysctl".}
+              importc: "sysctl", header: "<sys/sysctl.h>".}
 
 proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
   ## returns the numer of the processors/cores the machine has.