git » libfiu » commit 3449d9c

preload/posix: Only build sync_file_range() wrapper when building on linux

author Alberto Bertogli
2009-06-17 01:08:29 UTC
committer Alberto Bertogli
2009-06-17 01:11:01 UTC
parent dfa720f8b83d5d58cacd622d829515c299e9a013

preload/posix: Only build sync_file_range() wrapper when building on linux

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

preload/posix/modules/linux.io.mod +4 -0

diff --git a/preload/posix/modules/linux.io.mod b/preload/posix/modules/linux.io.mod
index e3f2582..e05df19 100644
--- a/preload/posix/modules/linux.io.mod
+++ b/preload/posix/modules/linux.io.mod
@@ -4,9 +4,13 @@ include: <errno.h>
 
 fiu name base: linux/io/
 
+# sync_file_range() is linux-only
+v: #ifdef __linux__
+
 int sync_file_range(int fd, off_t offset, off_t nbytes, \
 		unsigned int flags);
 	on error: -1
 	valid errnos: EBADF EINVAL EIO ENOMEM ENOSPC
 
+v: #endif