aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-03-01 05:32:59 +0000
committerRoland McGrath <roland@gnu.org>2006-03-01 05:32:59 +0000
commite2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce (patch)
tree7b48cb055b65cf11b56000bb84d37a23365520bf /libio/genops.c
parent* Makeconfig (+includes): Add back $(includes) (diff)
downloadglibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.tar.gz
glibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.tar.bz2
glibc-e2c7e1de2b8f2539d613b7c7adeb65132bb1f0ce.zip
* include/fcntl.h: Declare __openat, __open64. Use libc_hidden_proto.
* io/openat.c (__openat): Define instead of openat. Use libc_hidden_def. Define openat with weak_alias. * io/openat64.c (__openat64): Define instead of openat64. Use libc_hidden_def. Define openat64 with weak_alias. * sysdeps/unix/sysv/linux/openat.c: Likewise. * libio/genops.c: Include <sched.h> for __sched_yield decl.
Diffstat (limited to 'libio/genops.c')
-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;