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

Natanael Copa natanael.copa at gmail.com
Wed Nov 28 12:12:20 UTC 2012


On Fri, Nov 23, 2012 at 4:38 PM, Bernhard Reutner-Fischer <
rep.dot.nop at gmail.com> wrote:

> 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;
>


Yes. This seems to fix it. Thanks!

-nc


More information about the uClibc mailing list