Blame m4/fstat.m4

Packit Service a2489d
# fstat.m4 serial 6
Packit Service a2489d
dnl Copyright (C) 2011-2018 Free Software Foundation, Inc.
Packit Service a2489d
dnl This file is free software; the Free Software Foundation
Packit Service a2489d
dnl gives unlimited permission to copy and/or distribute it,
Packit Service a2489d
dnl with or without modifications, as long as this notice is preserved.
Packit Service a2489d
Packit Service a2489d
AC_DEFUN([gl_FUNC_FSTAT],
Packit Service a2489d
[
Packit Service a2489d
  AC_REQUIRE([AC_CANONICAL_HOST])
Packit Service a2489d
  AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
Packit Service a2489d
Packit Service a2489d
  case "$host_os" in
Packit Service a2489d
    mingw* | solaris*)
Packit Service a2489d
      dnl On MinGW, the original stat() returns st_atime, st_mtime,
Packit Service a2489d
      dnl st_ctime values that are affected by the time zone.
Packit Service a2489d
      dnl Solaris stat can return a negative tv_nsec.
Packit Service a2489d
      REPLACE_FSTAT=1
Packit Service a2489d
      ;;
Packit Service a2489d
  esac
Packit Service a2489d
Packit Service a2489d
  dnl Replace fstat() for supporting the gnulib-defined open() on directories.
Packit Service a2489d
  m4_ifdef([gl_FUNC_FCHDIR], [
Packit Service a2489d
    gl_TEST_FCHDIR
Packit Service a2489d
    if test $HAVE_FCHDIR = 0; then
Packit Service a2489d
      case "$gl_cv_func_open_directory_works" in
Packit Service a2489d
        *yes) ;;
Packit Service a2489d
        *)
Packit Service a2489d
          REPLACE_FSTAT=1
Packit Service a2489d
          ;;
Packit Service a2489d
      esac
Packit Service a2489d
    fi
Packit Service a2489d
  ])
Packit Service a2489d
])
Packit Service a2489d
Packit Service a2489d
# Prerequisites of lib/fstat.c and lib/stat-w32.c.
Packit Service a2489d
AC_DEFUN([gl_PREREQ_FSTAT], [
Packit Service a2489d
  AC_REQUIRE([gl_HEADER_SYS_STAT_H])
Packit Service a2489d
  :
Packit Service a2489d
])