[vlc-devel] commit: Look for fdatasync (OSX seems to lack it) ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed May 6 19:27:12 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Sep  1 22:24:27 2008 +0300| [5e32245056f5a399a174da1ebeddf196ac1b7f3d] | committer: Rémi Denis-Courmont 

Look for fdatasync (OSX seems to lack it)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e32245056f5a399a174da1ebeddf196ac1b7f3d
---

 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index c4ef5c3..cdd2343 100644
--- a/configure.ac
+++ b/configure.ac
@@ -578,6 +578,9 @@ AC_FUNC_ALLOCA
 AC_CHECK_FUNCS(fcntl)
 AC_REPLACE_FUNCS([asprintf atof atoll gmtime_r lldiv localtime_r rewind strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtoll vasprintf swab])
 AC_CHECK_FUNCS([stricmp strnicmp])
+AC_CHECK_FUNCS(fdatasync,,
+  [AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.])
+])
 
 dnl Check for Linux system calls
 AC_CHECK_FUNCS([vmsplice])




More information about the vlc-devel mailing list