diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-03-31 12:12:35 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-03-31 12:12:35 +0000 |
commit | ab2312391abb678d26ab1957951c83ff715fb407 (patch) | |
tree | 25666d48e824e5331d3a94ed481b069ba478379f | |
parent | cda052217431f7683bf67ab4d77eab8e9661d0c7 (diff) |
Assume that lseek does not take a "dummy parameter" when cross-compiling,
as this is only relevent for intercept tests anyway, and was probably
fixed by casting the offset parameter to off_t anyway.
-rw-r--r-- | infrastructure/m4/ax_check_syscall_lseek.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/infrastructure/m4/ax_check_syscall_lseek.m4 b/infrastructure/m4/ax_check_syscall_lseek.m4 index 7d22c4b0..6c26e025 100644 --- a/infrastructure/m4/ax_check_syscall_lseek.m4 +++ b/infrastructure/m4/ax_check_syscall_lseek.m4 @@ -16,7 +16,7 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [ AC_REQUIRE([AX_FUNC_SYSCALL])dnl if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then AC_CACHE_CHECK([[whether syscall lseek requires dummy parameter]], [box_cv_have_lseek_dummy_param], - [AC_RUN_IFELSE( + [AC_TRY_RUN( [AC_LANG_PROGRAM([[ $ac_includes_default #include <fcntl.h> @@ -50,7 +50,9 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [ unlink("lseektest"); return res!=-1; ]])], - [box_cv_have_lseek_dummy_param=yes], [box_cv_have_lseek_dummy_param=no] + [box_cv_have_lseek_dummy_param=yes], + [box_cv_have_lseek_dummy_param=no], + [box_cv_have_lseek_dummy_param=no # assume not for cross-compiling] )]) if test "x$box_cv_have_lseek_dummy_param" = "xyes"; then AC_DEFINE([HAVE_LSEEK_DUMMY_PARAM], 1, |