This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit f4704b382196d872e4d41c8369851695453521bc Author: On-Work-Song <165349831+on-work-s...@users.noreply.github.com> AuthorDate: Fri Apr 19 14:27:28 2024 +0800 [improvement](storage) support glibc <2.21 for system call eventfd (#33218) support glibc <2.21 for system call eventfd --- be/src/glibc-compatibility/musl/eventfd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/be/src/glibc-compatibility/musl/eventfd.c b/be/src/glibc-compatibility/musl/eventfd.c index 68e489c8364..6358b921254 100644 --- a/be/src/glibc-compatibility/musl/eventfd.c +++ b/be/src/glibc-compatibility/musl/eventfd.c @@ -2,8 +2,16 @@ #include <unistd.h> #include <errno.h> #include "syscall.h" +#include <features.h> + + + +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 21) int eventfd(unsigned int count, int flags) +#else +int eventfd(int count, int flags) +#endif { int r = __syscall(SYS_eventfd2, count, flags); #ifdef SYS_eventfd --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org