Skip to content

Commit 205c356

Browse files
committed
Auto merge of #28249 - stepancheg:get-num-cpus, r=huonw
No need to export this symbol. `rust_get_num_cpus` is exported.
2 parents 5c2cfdf + 6ca5d52 commit 205c356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/rust_builtin.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ rust_dirent_t_size() {
8383
}
8484

8585
#if defined(__BSD__)
86-
int
86+
static int
8787
get_num_cpus() {
8888
/* swiped from http://stackoverflow.com/questions/150355/
8989
programmatically-find-the-number-of-cores-on-a-machine */
@@ -110,7 +110,7 @@ get_num_cpus() {
110110
return numCPU;
111111
}
112112
#elif defined(__GNUC__)
113-
int
113+
static int
114114
get_num_cpus() {
115115
return sysconf(_SC_NPROCESSORS_ONLN);
116116
}

0 commit comments

Comments
 (0)