amosbird commented on a change in pull request #7712:
URL: https://github.com/apache/incubator-doris/pull/7712#discussion_r783596791



##########
File path: be/src/glibc-compatibility/musl/eventfd.c
##########
@@ -0,0 +1,23 @@
+#include <sys/eventfd.h>
+#include <unistd.h>
+#include <errno.h>
+#include "syscall.h"
+
+int eventfd(unsigned int count, int flags)
+{
+       int r = __syscall(SYS_eventfd2, count, flags);
+#ifdef SYS_eventfd
+       if (r==-ENOSYS && !flags) r = __syscall(SYS_eventfd, count);

Review comment:
       > we need to update the current docker dev image
   
   Lemme check if it introduces any kinds of regressions. In general, this PR 
is for gcc11 and clang13 but should also play well with slightly older 
toolchains. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to