On Sat, Mar 18, 2023 at 07:00:27PM +0100, Henrik Frisk wrote:
sync.c:1207:8: error: implicit declaration of function 'fdatasync'
[-Werror,-Wimplicit-function-declaration]

Do you have a workaround for that?

--- a/src/common.h
+++ b/src/common.h
@@ -172,7 +172,7 @@ void flushn( void );
 char *xvasprintf( const char *fmt, va_list ap );
 void xprintf( const char *fmt, ... );

-#if !defined(_POSIX_SYNCHRONIZED_IO) || _POSIX_SYNCHRONIZED_IO <= 0
+#if 1 //!defined(_POSIX_SYNCHRONIZED_IO) || _POSIX_SYNCHRONIZED_IO <= 0
 # define fdatasync fsync
 #endif

should do, but i wonder what the reason for the misdetection is. either the macos headers are botched, or the documentation, or i misinterpreted something.


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to