fdatasync: port to MacOS X 10.7
authorEric Blake <eblake@redhat.com>
Fri, 16 Sep 2011 19:49:16 +0000 (13:49 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 16 Sep 2011 19:49:16 +0000 (13:49 -0600)
commitc14a71ce5f8a891ee3fe00f9ccbe2d3c85062708
treedba098004d7ad44839695ac4da1b9aed2f98017e
parent1500d77252e6158b8e421de52f60057b0feedab8
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>
ChangeLog
doc/posix-functions/fdatasync.texi
lib/unistd.in.h
m4/fdatasync.m4
m4/unistd_h.m4
modules/unistd