falcon-0.9.6.8-mongo-stdint.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From a64c0c3959a0f5e853daba2b35ca19459acf875e Mon Sep 17 00:00:00 2001
  2. From: Stanislas Marquis <stnsls@gmail.com>
  3. Date: Sat, 29 Jan 2011 12:27:50 +0100
  4. Subject: [PATCH] [mongo] Fix detection of stdint.h
  5. ---
  6. modules/native/mongodb/CMakeLists.txt | 12 +++++++++++-
  7. 1 files changed, 11 insertions(+), 1 deletions(-)
  8. diff --git a/modules/native/mongodb/CMakeLists.txt b/modules/native/mongodb/CMakeLists.txt
  9. index bf2d869..e4d1df6 100644
  10. --- a/modules/native/mongodb/CMakeLists.txt
  11. +++ b/modules/native/mongodb/CMakeLists.txt
  12. @@ -8,8 +8,18 @@ falcon_define_module( FALCON_MODULE mongo )
  13. message( STATUS "Adding mongodb module" )
  14. +##
  15. +# Check for stdint.h
  16. +#
  17. if ( NOT MSVC )
  18. - option( MONGO_HAVE_STDINT "MongoDB problem with int64_t?" OFF )
  19. + find_file( STDINT_H stdint.h HINTS /usr/include )
  20. + if ( STDINT_H STREQUAL STDINT_H-NOTFOUND )
  21. + option( MONGO_HAVE_STDINT "MongoDB should use stdint.h" OFF )
  22. + else()
  23. + option( MONGO_HAVE_STDINT "MongoDB should use stdint.h" ON )
  24. + endif()
  25. + mark_as_advanced( STDINT_H )
  26. + mark_as_advanced( MONGO_HAVE_STDINT )
  27. endif()
  28. ##
  29. --
  30. 1.7.9.1