reenable sync_file_range; should no longer break on mips
authorRich Felker <dalias@aerifal.cx>
Sun, 9 Sep 2012 18:58:55 +0000 (14:58 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 9 Sep 2012 18:58:55 +0000 (14:58 -0400)
src/linux/sync_file_range.c

index a47dc386bd344616f7d994c05f9b5a9704da09ab..6859abc05dabde2825af4a392b2b0e0d255f2a4e 100644 (file)
@@ -5,10 +5,10 @@
 
 int sync_file_range(int fd, off_t pos, off_t len, unsigned flags)
 {
-#if 0 && defined(SYS_sync_file_range2)
+#if defined(SYS_sync_file_range2)
        return syscall(SYS_sync_file_range2, fd, flags,
                __SYSCALL_LL_E(pos), __SYSCALL_LL_E(len));
-#elif 0 && defined(SYS_sync_file_range)
+#elif defined(SYS_sync_file_range)
        return syscall(SYS_sync_file_range, fd,
                __SYSCALL_LL_O(pos), __SYSCALL_LL_E(len), flags);
 #else