Details
Description
It appears that the macro ATS_HAS_EVENTFD is not correctly determined in some instances.
When compiling v 2.1.3 on the above environment, I get :
...
UnixEThread.cc:33:25: error: sys/eventfd.h: No such file or directory
mv -f .deps/Thread.Tpo .deps/Thread.Po
g++ -DHAVE_CONFIG_H -I. -I../../libinktomi++ -I../../librecords -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -Dlinux -I/usr/include/tcl8.4 -march=i586 -g -pipe -Wall -Werror -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -MT UnixEvent.o -MD -MP -MF .deps/UnixEvent.Tpo -c -o UnixEvent.o UnixEvent.cc
UnixEThread.cc: In constructor 'EThread::EThread(ThreadType, int)':
UnixEThread.cc:76: error: 'eventfd' was not declared in this scope
make[2]: *** [UnixEThread.o] Error 1
...
According to http://perkamon.alioth.debian.org/online/man2/eventfd.2.php eventfd() is available in Linux kernels >= 2.6.22, so I am assuming in a 2.6.18 kernel, ATS_HAS_EVENTFD should not be set, but it is. I'm also assuming this is a ./configure issue.