From d10475f8237e66f6a00b65427758c98d80cb381d Mon Sep 17 00:00:00 2001 From: Jean-Christian de Rivaz Date: Wed, 2 Nov 2011 20:44:00 +0100 Subject: Add stub for eventfd. Warn if the enventfd() function is not implemented. Signed-off-by: Jean-Christian de Rivaz Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/stubs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/common/stubs.c') 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 -- cgit v1.2.3