diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-03-15 13:15:43 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-04-11 11:09:25 +0100 |
commit | b073e110e81bc16d17d4d0bcc40f0137685bbf39 (patch) | |
tree | c20e05cfeaca7728a9a80883bd5fcf1951460953 /tools/configure | |
parent | 1cc48e865b2faa3f8147c15fcec4c24c46b3d63f (diff) | |
download | xen-b073e110e81bc16d17d4d0bcc40f0137685bbf39.tar.gz xen-b073e110e81bc16d17d4d0bcc40f0137685bbf39.tar.bz2 xen-b073e110e81bc16d17d4d0bcc40f0137685bbf39.zip |
blktap2: use sys/eventfd.h if it is available
arm64 only has the eventfd2 system call and using the libc wrapper when
available hides this from us. eventfd() has been in libc since glibc 2.8.
This code is already Linux specific.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/configure b/tools/configure index 9f731724ea..a98dd9e0ad 100755 --- a/tools/configure +++ b/tools/configure @@ -7817,12 +7817,13 @@ fi # Checks for header files. -for ac_header in yajl/yajl_version.h +for ac_header in yajl/yajl_version.h sys/eventfd.h do : - ac_fn_c_check_header_mongrel "$LINENO" "yajl/yajl_version.h" "ac_cv_header_yajl_yajl_version_h" "$ac_includes_default" -if test "x$ac_cv_header_yajl_yajl_version_h" = x""yes; then : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF -#define HAVE_YAJL_YAJL_VERSION_H 1 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi |