Fw: [libvirt] [PATCH] build: trivial fix error: implicit declaration of function 'malloc'

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Nov 23 15:38:18 UTC 2012


On 22 November 2012 16:29, Natanael Copa <natanael.copa at gmail.com> wrote:
> __sched_cpualloc

right. Can you check if this fixes it, please?

diff --git a/libc/sysdeps/linux/common/bits/sched.h
b/libc/sysdeps/linux/common/bits/sched.h
index b1f94ce..a5eb6ee 100644
--- a/libc/sysdeps/linux/common/bits/sched.h
+++ b/libc/sysdeps/linux/common/bits/sched.h
@@ -108,6 +108,7 @@ struct __sched_param
 /* Size definition for CPU sets.  */
 # define __CPU_SETSIZE	1024
 # define __NCPUBITS	(8 * sizeof (__cpu_mask))
+# include <stdlib.h>

 /* Type for array elements in 'cpu_set_t'.  */
 typedef unsigned long int __cpu_mask;


More information about the uClibc mailing list