OSDN Git Service

sched.h: include stdlib.h for malloc/free
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 24 Nov 2012 17:26:00 +0000 (18:26 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 3 Dec 2012 08:46:42 +0000 (09:46 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/common/bits/sched.h

index b1f94ce..a5eb6ee 100644 (file)
@@ -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;