1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-22 20:22:44 +03:00

Merge in trunk changes to os_unix.c that allow the code to build on

unix platforms that lack posix_fallocate().

FossilOrigin-Name: bf5764067ab848e19e5971cbdf892c633495e325
This commit is contained in:
drh
2013-06-19 23:48:35 +00:00
3 changed files with 8 additions and 9 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(HAVE_POSIX_FALLOCATE) && defined(__linux__)
# define HAVE_POSIX_FALLOCATE 1
#endif