summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Christian de Rivaz <jc@eclis.ch>2011-11-02 20:44:00 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-11-04 11:44:26 +0100
commitd10475f8237e66f6a00b65427758c98d80cb381d (patch)
tree1c4db112c9372b795489abda4a2d1df719fb0a4c
parent7ae07d4f028849d30b4f260b3261d634f16d7331 (diff)
Add stub for eventfd.
Warn if the enventfd() function is not implemented. Signed-off-by: Jean-Christian de Rivaz <jc@eclis.ch> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--libc/sysdeps/linux/common/stubs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c
index 1e5490351..70addec0b 100644
--- a/libc/sysdeps/linux/common/stubs.c
+++ b/libc/sysdeps/linux/common/stubs.c
@@ -92,6 +92,10 @@ make_stub(epoll_ctl)
make_stub(epoll_wait)
#endif
+#if !defined __NR_eventfd && defined __UCLIBC_LINUX_SPECIFIC__
+make_stub(eventfd)
+#endif
+
#ifndef __NR_fdatasync
make_stub(fdatasync)
#endif