Guest User

Untitled

a guest
Dec 29th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.19 KB | None | 0 0
  1. Index: src/jrd/recsrc/HashJoin.cpp
  2. ===================================================================
  3. --- src/jrd/recsrc/HashJoin.cpp (revision 60435)
  4. +++ src/jrd/recsrc/HashJoin.cpp (working copy)
  5. @@ -65,7 +65,11 @@
  6.     void qsort_ctx(void* base, size_t count, size_t width, qsort_compare_callback compare, void* arg)
  7.     {
  8.  #if defined(LINUX)
  9. +#ifdef qsort_r
  10.         qsort_r(base, count, width, compare, arg);
  11. +#else
  12. +#undef USE_QSORT_CTX
  13. +#endif
  14.  #elif defined(WIN_NT)
  15.         struct qsort_ctx_data tmp = {arg, compare};
  16.         qsort_s(base, count, width, &qsort_ctx_arg_swap, &tmp);
  17. Index: src/utilities/ntrace/PluginLogWriter.cpp
  18. ===================================================================
  19. --- src/utilities/ntrace/PluginLogWriter.cpp    (revision 60435)
  20. +++ src/utilities/ntrace/PluginLogWriter.cpp    (working copy)
  21. @@ -97,8 +97,12 @@
  22.         );
  23.     m_fileHandle = _open_osfhandle((intptr_t) hFile, 0);
  24.  #else
  25. -   m_fileHandle = ::open(m_fileName.c_str(), O_CREAT | O_APPEND | O_RDWR, S_IREAD | S_IWRITE);
  26. +   m_fileHandle = ::open(m_fileName.c_str(), O_CREAT | O_APPEND | O_RDWR
  27. +#ifndef ARM
  28. +        , S_IREAD | S_IWRITE
  29.  #endif
  30. +        );
  31. +#endif
  32.  
  33.     if (m_fileHandle < 0)
  34.         checkErrno("open");
Advertisement
Add Comment
Please, Sign In to add comment