diff options
| author | manuel <manuel@mausz.at> | 2016-12-13 13:45:04 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2016-12-13 13:45:04 +0100 |
| commit | 1e5bdca69f7676b2dbcd64f0f44f31b12b337b7c (patch) | |
| tree | de36b55c5b49c0b266ebf8a5276815d2ac1a8ae5 /project/cmake/scripts/common/ArchSetup.cmake | |
| parent | 8cdf8dec703d882b46ca50a769fabb95ffc48e2c (diff) | |
| download | kodi-pvr-build-1e5bdca69f7676b2dbcd64f0f44f31b12b337b7c.tar.gz kodi-pvr-build-1e5bdca69f7676b2dbcd64f0f44f31b12b337b7c.tar.bz2 kodi-pvr-build-1e5bdca69f7676b2dbcd64f0f44f31b12b337b7c.zip | |
sync with upstream
Diffstat (limited to 'project/cmake/scripts/common/ArchSetup.cmake')
| -rw-r--r-- | project/cmake/scripts/common/ArchSetup.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/project/cmake/scripts/common/ArchSetup.cmake b/project/cmake/scripts/common/ArchSetup.cmake index 438e3bd..538fcaf 100644 --- a/project/cmake/scripts/common/ArchSetup.cmake +++ b/project/cmake/scripts/common/ArchSetup.cmake | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | include(CheckCXXSourceCompiles) | 14 | include(CheckCXXSourceCompiles) |
| 15 | include(CheckSymbolExists) | 15 | include(CheckSymbolExists) |
| 16 | include(CheckFunctionExists) | 16 | include(CheckFunctionExists) |
| 17 | include(CheckIncludeFile) | ||
| 17 | 18 | ||
| 18 | # Macro to check if a given type exists in a given header | 19 | # Macro to check if a given type exists in a given header |
| 19 | # Arguments: | 20 | # Arguments: |
| @@ -109,6 +110,10 @@ check_symbol_exists(PRIdMAX inttypes.h HAVE_INTTYPES_H) | |||
| 109 | check_builtin("long* temp=0; long ret=__sync_add_and_fetch(temp, 1)" HAS_BUILTIN_SYNC_ADD_AND_FETCH) | 110 | check_builtin("long* temp=0; long ret=__sync_add_and_fetch(temp, 1)" HAS_BUILTIN_SYNC_ADD_AND_FETCH) |
| 110 | check_builtin("long* temp=0; long ret=__sync_sub_and_fetch(temp, 1)" HAS_BUILTIN_SYNC_SUB_AND_FETCH) | 111 | check_builtin("long* temp=0; long ret=__sync_sub_and_fetch(temp, 1)" HAS_BUILTIN_SYNC_SUB_AND_FETCH) |
| 111 | check_builtin("long* temp=0; long ret=__sync_val_compare_and_swap(temp, 1, 1)" HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP) | 112 | check_builtin("long* temp=0; long ret=__sync_val_compare_and_swap(temp, 1, 1)" HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP) |
| 113 | check_include_file(sys/inotify.h HAVE_INOTIFY) | ||
| 114 | if(HAVE_INOTIFY) | ||
| 115 | list(APPEND SYSTEM_DEFINES -DHAVE_INOTIFY=1) | ||
| 116 | endif() | ||
| 112 | if(HAVE_POSIX_FADVISE) | 117 | if(HAVE_POSIX_FADVISE) |
| 113 | list(APPEND SYSTEM_DEFINES -DHAVE_POSIX_FADVISE=1) | 118 | list(APPEND SYSTEM_DEFINES -DHAVE_POSIX_FADVISE=1) |
| 114 | endif() | 119 | endif() |
