Advertisement
ImNtReal

lttng-uts.patch

Dec 27th, 2016
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.67 KB | None | 0 0
  1. diff -Naur src/pal/src/configure.cmake-orig src/pal/src/configure.cmake
  2. --- src/pal/src/configure.cmake-orig    2016-12-27 09:27:00.480715728 -0500
  3. +++ src/pal/src/configure.cmake 2016-12-27 09:26:28.707299084 -0500
  4. @@ -13,7 +13,7 @@
  5.    set(CMAKE_REQUIRED_INCLUDES /opt/local/include)
  6.  endif()
  7.  if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin AND NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD)
  8. -  set(CMAKE_REQUIRED_DEFINITIONS "-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L")
  9. +  set(CMAKE_REQUIRED_DEFINITIONS "-D_BSD_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L")
  10.  endif()
  11.  
  12.  list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_FILE_OFFSET_BITS=64)
  13. @@ -33,7 +33,15 @@
  14.  check_include_files(lwp.h HAVE_LWP_H)
  15.  check_include_files(libunwind.h HAVE_LIBUNWIND_H)
  16.  check_include_files(runetype.h HAVE_RUNETYPE_H)
  17. +
  18. +if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD)
  19. +  set(CMAKE_REQUIRED_FLAGS "-ldl")
  20. +endif()
  21.  check_include_files(lttng/tracepoint.h HAVE_LTTNG_TRACEPOINT_H)
  22. +if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD)
  23. +  unset(CMAKE_REQUIRED_FLAGS)
  24. +endif()
  25. +
  26.  check_include_files(uuid/uuid.h HAVE_LIBUUID_H)
  27.  check_include_files(sys/sysctl.h HAVE_SYS_SYSCTL_H)
  28.  check_include_files(gnu/lib-names.h HAVE_GNU_LIBNAMES_H)
  29. @@ -62,7 +70,6 @@
  30.  check_function_exists(localtime_r HAVE_LOCALTIME_R)
  31.  check_function_exists(gmtime_r HAVE_GMTIME_R)
  32.  check_function_exists(timegm HAVE_TIMEGM)
  33. -check_function_exists(_snwprintf HAVE__SNWPRINTF)
  34.  check_function_exists(poll HAVE_POLL)
  35.  check_function_exists(statvfs HAVE_STATVFS)
  36.  check_function_exists(thread_self HAVE_THREAD_SELF)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement