diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-18 18:06:28 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-18 18:06:28 +0000 |
commit | 7341e544a603b629235731ade8faace5666d1180 (patch) | |
tree | 44912af377a1284ca36611f9b8acc53b753eb783 /libbacktrace/configure | |
parent | d48b4b141d4e420c86aafb9f746b397bc04cfaa9 (diff) | |
download | gcc-7341e544a603b629235731ade8faace5666d1180.tar.gz |
* posix.c (O_BINARY): Define if not defined.
(backtrace_open): Pass O_BINARY to open. Only call fcntl if
HAVE_FCNTL is defined.
* configure.ac: Test for the fcntl function.
* configure, config.h.in: Rebuild.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/configure')
-rwxr-xr-x | libbacktrace/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libbacktrace/configure b/libbacktrace/configure index 518e99e0014..70ac451e0a4 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -11713,6 +11713,27 @@ if test "$ALLOC_FILE" = "alloc.lo"; then fi +# Check for the fcntl function. +if test -n "${with_target_subdir}"; then + case "${host}" in + *-*-mingw*) have_fcntl=no ;; + *) have_fcntl=yes ;; + esac +else + ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" +if test "x$ac_cv_func_fcntl" = x""yes; then : + have_fcntl=yes +else + have_fcntl=no +fi + +fi +if test "$have_fcntl" = "yes"; then + +$as_echo "#define HAVE_FCNTL 1" >>confdefs.h + +fi + ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" if test "x$ac_cv_have_decl_strnlen" = x""yes; then : ac_have_decl=1 |