]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't use __typeof__ (getcpu)
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Dec 2018 20:47:30 +0000 (12:47 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Dec 2018 20:47:41 +0000 (12:47 -0800)
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).

ChangeLog
include/sched.h

index c6ad912b1143cff106ce74d3e64ac79c8b629888..2a5fad3372004b6664536b271807d5faaac803bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
+
 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
 
        * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
index 0843c26d73752594421425226a35ca43706a67d7..4abc440176a584320424a008c7ac6a5bc25bfd91 100644 (file)
@@ -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