another try to build on osx

This commit is contained in:
Patrick Brosi 2018-07-23 17:05:14 +02:00
parent ad04f554a5
commit e584eb7cbd
4 changed files with 5 additions and 5 deletions

View file

@ -2,6 +2,7 @@ language: cpp
os: os:
- linux - linux
- osx
compiler: compiler:
- gcc - gcc
@ -29,4 +30,4 @@ script:
notifications: notifications:
email: email:
on_success: never on_success: never
on_failure: always on_failure: never

View file

@ -60,9 +60,6 @@ else()
set(VERSION_GIT_FULL "${VERSION_GIT}-${VERSION_GIT_IS_DIRTY}") set(VERSION_GIT_FULL "${VERSION_GIT}-${VERSION_GIT_IS_DIRTY}")
endif() endif()
include(CheckSymbolExists)
check_symbol_exists(posix_fadvise fcntl.h HAVE_POSIX_FADVISE)
add_subdirectory(src) add_subdirectory(src)
# tests # tests

View file

@ -283,7 +283,9 @@ int OsmIdSet::openTmpFile() const {
exit(1); exit(1);
} }
#ifdef __unix__
posix_fadvise(file, 0, 0, POSIX_FADV_SEQUENTIAL); posix_fadvise(file, 0, 0, POSIX_FADV_SEQUENTIAL);
#endif
return file; return file;
} }

@ -1 +1 @@
Subproject commit bdbfb7a18c4b6adb1b0be2ab7fc88a3d372efe74 Subproject commit 00e19bfbdc300eb064fbceef2efaed2ccedfda88