]> sourceware.org Git - newlib-cygwin.git/commitdiff
RTEMS: _KERNEL tweak for <sys/cpuset.h>
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 1 Jul 2022 05:25:32 +0000 (07:25 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 1 Jul 2022 05:25:32 +0000 (07:25 +0200)
If _KERNEL is defined, then do not delcare CPU_ALLOC() and CPU_FREE() since
__cpuset_alloc() and __cpuset_free() are not declared as well.

newlib/libc/sys/rtems/include/sys/cpuset.h

index 09278242fe6f3750cf71ad6953af99384362d00f..8b2918cbc34c8b650eb17fc7269a716d74ca5578 100644 (file)
@@ -75,6 +75,7 @@ typedef cpuset_t cpu_set_t;
 
 __BEGIN_DECLS
 
+#ifndef _KERNEL
 static __inline cpu_set_t *CPU_ALLOC(int num_cpus)
 {
   return __cpuset_alloc(num_cpus);
@@ -84,6 +85,7 @@ static __inline void CPU_FREE(cpu_set_t *set)
 {
   __cpuset_free(set);
 }
+#endif
 
 static __inline void CPU_ZERO_S(size_t setsize, cpu_set_t *set)
 {
This page took 0.03019 seconds and 5 git commands to generate.