Browse Source

sched.h: include stdlib.h for malloc/free

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 11 năm trước cách đây
mục cha
commit
ae9e3f4652
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      libc/sysdeps/linux/common/bits/sched.h

+ 1 - 0
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;