From: VMware, Inc <> Date: Fri, 18 Sep 2009 21:36:42 +0000 (-0700) Subject: Check for SYS_eventfd instead of SYS_eventfd2. X-Git-Tag: 2009.09.18-193784~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62b1d22a6f6a63da886ffdab651fa261cd0e6fb3;p=thirdparty%2Fopen-vm-tools.git Check for SYS_eventfd instead of SYS_eventfd2. The former is more common (since, well, it was introduced earlier) and eventfd.c still fails to compile if it's defined. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac index 9a79a38f2..ad2b7669f 100644 --- a/open-vm-tools/configure.ac +++ b/open-vm-tools/configure.ac @@ -719,9 +719,9 @@ AC_PATH_PROG( ### Headers ### -AC_CHECK_DECL([SYS_eventfd2], - [has_sys_eventfd2="yes"], - [has_sys_eventfd2="no"], +AC_CHECK_DECL([SYS_eventfd], + [has_sys_eventfd="yes"], + [has_sys_eventfd="no"], [ [#include ] ]) AC_CHECK_HEADERS([crypt.h]) @@ -1032,7 +1032,7 @@ AM_CONDITIONAL(HAVE_FUSE, test "$have_fuse" = "yes") AM_CONDITIONAL(HAVE_GNU_LD, test "$with_gnu_ld" = "yes") AM_CONDITIONAL(HAVE_GTKMM, test "$have_x" = "yes" -a "$with_gtkmm" = "yes") AM_CONDITIONAL(HAVE_PAM, test "$with_pam" = "yes") -AM_CONDITIONAL(NEED_EVENTFD, test "$has_sys_eventfd2" = "no") +AM_CONDITIONAL(NEED_EVENTFD, test "$has_sys_eventfd" = "no") ### Feature-specific flags / actions # Combine where possible