From 44c5e91d7894677422bcfe27f68147d8a3353154 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Oct 2008 22:38:03 +0000 Subject: *** empty log message *** --- eio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eio.c b/eio.c index 008fcb7..e0e172f 100644 --- a/eio.c +++ b/eio.c @@ -831,7 +831,7 @@ eio__sync_file_range (int fd, off_t offset, size_t nbytes, unsigned int flags) res = sync_file_range (fd, offset, nbytes, flags); - if (res != ENOSYS) + if (!res || errno != ENOSYS) return res; #endif @@ -1018,7 +1018,7 @@ eio__scandir (eio_req *req, etp_worker *self) #if !(_POSIX_MAPPED_FILES && _POSIX_SYNCHRONIZED_IO) # undef msync -# define msync(a,b,c) ENOSYS +# define msync(a,b,c) ((errno = ENOSYS), -1) #endif int -- cgit v1.2.3