diff --git a/.travis.yml b/.travis.yml index 36834e6..455884b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: cpp os: - linux + - osx compiler: - gcc @@ -29,4 +30,4 @@ script: notifications: email: on_success: never - on_failure: always + on_failure: never diff --git a/CMakeLists.txt b/CMakeLists.txt index 46e1822..27c0aee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,9 +60,6 @@ else() set(VERSION_GIT_FULL "${VERSION_GIT}-${VERSION_GIT_IS_DIRTY}") endif() -include(CheckSymbolExists) -check_symbol_exists(posix_fadvise fcntl.h HAVE_POSIX_FADVISE) - add_subdirectory(src) # tests diff --git a/src/pfaedle/osm/OsmIdSet.cpp b/src/pfaedle/osm/OsmIdSet.cpp index 6566692..5390def 100644 --- a/src/pfaedle/osm/OsmIdSet.cpp +++ b/src/pfaedle/osm/OsmIdSet.cpp @@ -283,7 +283,9 @@ int OsmIdSet::openTmpFile() const { exit(1); } +#ifdef __unix__ posix_fadvise(file, 0, 0, POSIX_FADV_SEQUENTIAL); +#endif return file; } diff --git a/src/xml b/src/xml index bdbfb7a..00e19bf 160000 --- a/src/xml +++ b/src/xml @@ -1 +1 @@ -Subproject commit bdbfb7a18c4b6adb1b0be2ab7fc88a3d372efe74 +Subproject commit 00e19bfbdc300eb064fbceef2efaed2ccedfda88