qt5base-0006-sqlite3-Do-not-check-feature-macros-for-posix_falloc.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 18eee84e9458bdcb244df4c5ad968c8d5ea1860a Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= <fatih.asici@gmail.com>
  3. Date: Fri, 18 Apr 2014 10:19:03 +0300
  4. Subject: [PATCH] sqlite3: Do not check feature macros for posix_fallocate()
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Build system already checks for this function and defines
  9. HAVE_POSIX_FALLOCATE if it is available.
  10. Next releases of Qt will come with an updated sqlite3 which removes this
  11. check.
  12. Change-Id: I55e403aa01a7f054f9fe4773ce96dad399afce80
  13. Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>
  14. ---
  15. src/3rdparty/sqlite/sqlite3.c | 7 -------
  16. 1 file changed, 7 deletions(-)
  17. diff --git a/src/3rdparty/sqlite/sqlite3.c b/src/3rdparty/sqlite/sqlite3.c
  18. index 03fa649..1ae9be2 100644
  19. --- a/src/3rdparty/sqlite/sqlite3.c
  20. +++ b/src/3rdparty/sqlite/sqlite3.c
  21. @@ -22935,13 +22935,6 @@ SQLITE_PRIVATE const char *sqlite3OpcodeName(int i){
  22. */
  23. #if SQLITE_OS_UNIX /* This file is used on unix only */
  24. -/* Use posix_fallocate() if it is available
  25. -*/
  26. -#if !defined(HAVE_POSIX_FALLOCATE) \
  27. - && (_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L)
  28. -# define HAVE_POSIX_FALLOCATE 1
  29. -#endif
  30. -
  31. /*
  32. ** There are various methods for file locking used for concurrency
  33. ** control:
  34. --
  35. 1.9.1