File xmail-1.27_eventfd.patch of Package XMail
--- xmail-1.27_orig/Makefile.lnx 2010-02-26 12:33:44.000000000 +0900
+++ xmail-1.27/Makefile.lnx 2010-02-26 21:42:01.000000000 +0900
@@ -44,7 +44,9 @@
MAINSRC = MainLinux.cpp
SYSSRCS = SysDepLinux.cpp SysDepUnix.cpp
-ifeq ($(wildcard /usr/include/sys/eventfd.h), )
+EVENTFD_DEFINE = $(shell grep -ri EFD_NONBLOCK /usr/include/sys/eventfd.h > /dev/null 2>&1 && echo 1)
+ifeq ($(EVENTFD_DEFINE), )
+# ifeq ($(wildcard /usr/include/sys/eventfd.h), )
SYSSRCS := $(SYSSRCS) SysOsEventfd_pipe.cpp
else
SYSSRCS := $(SYSSRCS) SysOsEventfd_eventfd.cpp