aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-12-07 12:47:30 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-12-07 12:47:41 -0800
commit37caec3a11eb329f333bc70cf772cb9a9734325a (patch)
treedec17c68b64fc93797e93f37093cc3e74084603f /include
parent10446f5d9f2cf4d91c8ae483fd2b5470242ae2a1 (diff)
downloadglibc-37caec3a11eb329f333bc70cf772cb9a9734325a.tar
glibc-37caec3a11eb329f333bc70cf772cb9a9734325a.tar.gz
glibc-37caec3a11eb329f333bc70cf772cb9a9734325a.tar.bz2
glibc-37caec3a11eb329f333bc70cf772cb9a9734325a.zip
Don't use __typeof__ (getcpu)
We can't use "__typeof__ (getcpu)" since getcpu is Linux specific and Hurd doesn't have it. Tested with build-many-glibcs.py. * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
Diffstat (limited to 'include')
-rw-r--r--include/sched.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sched.h b/include/sched.h
index 0843c26d73..4abc440176 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -26,7 +26,9 @@ libc_hidden_proto (__clone)
extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base,
size_t __child_stack_size, int __flags, void *__arg, ...);
libc_hidden_proto (__clone2)
-extern __typeof__ (getcpu) __getcpu;
+/* NB: Can't use "__typeof__ (getcpu)" since getcpu is Linux specific
+ and Hurd doesn't have it. */
+extern int __getcpu (unsigned int *, unsigned int *);
libc_hidden_proto (__getcpu)
#endif
#endif