From 88a4f7fcf6638c83bb6c2ce7fca1ce55e93e7c0b Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Wed, 6 Apr 2011 12:44:30 +0200
Subject: [PATCH 228/396] stubs.c: add stubs for readahead, splice and tee

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 libc/sysdeps/linux/common/stubs.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c
index 02cd724..bc64c1f 100644
--- a/libc/sysdeps/linux/common/stubs.c
+++ b/libc/sysdeps/linux/common/stubs.c
@@ -30,7 +30,9 @@ static int enosys_stub(void)
 #ifndef __UCLIBC_HAS_LFS__
 # undef __NR_fadvise64
 # undef __NR_fadvise64_64
+# undef __NR_readahead
 # undef __NR_sync_file_range
+# undef __NR_splice
 #endif
 
 #if !defined __NR_accept && !defined __NR_socketcall && defined __UCLIBC_HAS_SOCKET__
@@ -346,6 +348,10 @@ make_stub(sigwaitinfo)
 make_stub(splice)
 #endif
 
+#if !defined __NR_readahead && defined __UCLIBC_LINUX_SPECIFIC__
+make_stub(readahead)
+#endif
+
 #if !defined __NR_swapoff && defined __UCLIBC_LINUX_SPECIFIC__
 make_stub(swapoff)
 #endif
-- 
1.7.0.4

