posix_fadvise64 is not available on hurd, will yield to an compiler warning and
aborting the build through --fatal-warnings
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799619
Forwarded: no
Gbp-Pq: Name fix_hurd_build.patch
return;
}
-#if HAVE_FADVISE
+#if HAVE_FADVISE && !defined(__GNU__)
//TODO check return code
posix_fadvise(f.handle(), 0, 0, POSIX_FADV_SEQUENTIAL);
#endif
return;
}
-#if HAVE_FADVISE
+#if HAVE_FADVISE && !defined(__GNU__)
posix_fadvise(src_file.handle(), 0, 0, POSIX_FADV_SEQUENTIAL);
#endif
return;
}
-#if HAVE_FADVISE
+#if HAVE_FADVISE && !defined(__GNU__)
posix_fadvise(dest_file.handle(), 0, 0, POSIX_FADV_SEQUENTIAL);
#endif