[PATCH] Define fdatasync alos for Cygwin.

Corinna Vinschen vinschen@redhat.com
Tue Feb 22 15:41:00 GMT 2005


FYI, I've applied the below patch.

Corinna

	* libc/include/sys/unistd.h: Define fdatasync also for Cygwin.

Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -p -r1.53 -r1.54
--- libc/include/sys/unistd.h   23 Aug 2004 18:39:52 -0000      1.53
+++ libc/include/sys/unistd.h   22 Feb 2005 15:31:51 -0000      1.54
@@ -53,9 +53,7 @@ int     _EXFUN(fchown, (int __fildes, ui
 pid_t   _EXFUN(fork, (void ));
 long    _EXFUN(fpathconf, (int __fd, int __name ));
 int     _EXFUN(fsync, (int __fd));
-#ifndef __CYGWIN__
 int     _EXFUN(fdatasync, (int __fd));
-#endif
 char    _EXFUN(*getcwd, (char *__buf, size_t __size ));
 #if defined(__CYGWIN__)
 int    _EXFUN(getdomainname ,(char *__name, size_t __len));

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.



More information about the Newlib mailing list