summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/genops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libio/genops.c b/libio/genops.c
index 030343e7aa..5f223524a0 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -34,6 +34,9 @@
#endif
#include <string.h>
#include <stdbool.h>
+#ifdef _LIBC
+#include <sched.h>
+#endif
#ifdef _IO_MTSAFE_IO
static _IO_lock_t list_all_lock = _IO_lock_initializer;