diff options
author | Eric Blake <eblake@redhat.com> | 2011-09-16 13:49:16 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-09-16 13:49:16 -0600 |
commit | c14a71ce5f8a891ee3fe00f9ccbe2d3c85062708 (patch) | |
tree | dba098004d7ad44839695ac4da1b9aed2f98017e /m4/unistd_h.m4 | |
parent | 1500d77252e6158b8e421de52f60057b0feedab8 (diff) | |
download | gnulib-c14a71ce5f8a891ee3fe00f9ccbe2d3c85062708.tar.gz |
fdatasync: port to MacOS X 10.7
MacOS X 10.7 added an fdatasync syscall and exports a symbol for it,
but fails to declare it anywhere. Lacking any hard evidence that this
syscall is broken, we will just provide the declaration and use it.
* m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
declared.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
* modules/unistd (Makefile.am): Substitute it.
* lib/unistd.in.h (fdatasync): Declare on MacOS.
* doc/posix-functions/fdatasync.texi (fdatasync): Document it.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'm4/unistd_h.m4')
-rw-r--r-- | m4/unistd_h.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/unistd_h.m4 b/m4/unistd_h.m4 index 29f3947b5e..720e0fd03b 100644 --- a/m4/unistd_h.m4 +++ b/m4/unistd_h.m4 @@ -136,6 +136,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP]) HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON]) HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR]) + HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC]) HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME]) HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE]) |