From: H.J. Lu Date: Fri, 7 Dec 2018 20:47:30 +0000 (-0800) Subject: Don't use __typeof__ (getcpu) X-Git-Tag: glibc-2.29~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37caec3a11eb329f333bc70cf772cb9a9734325a;p=thirdparty%2Fglibc.git 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). --- diff --git a/ChangeLog b/ChangeLog index c6ad912b114..2a5fad33720 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-12-07 H.J. Lu + + * include/sched.h (__getcpu): Don't use __typeof__ (getcpu). + 2018-12-07 Gabriel F. T. Gomes * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be diff --git a/include/sched.h b/include/sched.h index 0843c26d737..4abc440176a 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