1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Only enable posix_fallocate by default on linux and mac.

FossilOrigin-Name: b9b30d4f9845d212e2d3206abbf2795099e5d71d
This commit is contained in:
drh
2013-06-19 14:28:34 +00:00
parent 5f0b33c2cb
commit 7fb1b30118
3 changed files with 9 additions and 10 deletions

View File

@@ -48,8 +48,7 @@
/* Use posix_fallocate() if it is available
*/
#if !defined(HAVE_POSIX_FALLOCATE) \
&& (_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L)
#if defined(__linux__) || defined(__APPLE__)
# define HAVE_POSIX_FALLOCATE 1
#endif