diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-08-07 04:42:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-08-07 04:42:49 +0000 |
commit | 233115eaf547fa35ce2b442f215739f6f20647f9 (patch) | |
tree | 1bca221ed18cd8f917eb75d5ad3cf307a2cb51e1 /libgo/runtime/getncpu-none.c | |
parent | 2dbfe2c6d5755d4229004d38a9c8e0b1eecdf81c (diff) | |
download | gcc-233115eaf547fa35ce2b442f215739f6f20647f9.zip gcc-233115eaf547fa35ce2b442f215739f6f20647f9.tar.gz gcc-233115eaf547fa35ce2b442f215739f6f20647f9.tar.bz2 |
runtime: support NumCPU() on more platforms Added support for Solaris, Irix, *BSD (including Darwin).
runtime: support NumCPU() on more platforms
Added support for Solaris, Irix, *BSD (including Darwin).
Still missing support for RTEMS.
Fixes issue 3698 in Go issue tracker.
From-SVN: r190197
Diffstat (limited to 'libgo/runtime/getncpu-none.c')
-rw-r--r-- | libgo/runtime/getncpu-none.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/runtime/getncpu-none.c b/libgo/runtime/getncpu-none.c new file mode 100644 index 0000000..ba6fd4e --- /dev/null +++ b/libgo/runtime/getncpu-none.c @@ -0,0 +1,12 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "runtime.h" +#include "defs.h" + +int32 +getproccount(void) +{ + return 0; +} |