Added guards for gnu_source definition in CMake.
Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/658cb617 Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/658cb617 Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/658cb617 Branch: refs/heads/partitioned-aggregation Commit: 658cb61760ab6bc98ead1faf231b7b7f27a0fa1e Parents: 3c2749e Author: Harshad Deshmukh <hbdeshm...@apache.org> Authored: Mon Aug 8 12:19:00 2016 -0500 Committer: Zuyu Zhang <zu...@twitter.com> Committed: Mon Aug 8 10:42:51 2016 -0700 ---------------------------------------------------------------------- storage/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/658cb617/storage/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/storage/CMakeLists.txt b/storage/CMakeLists.txt index c4b8f70..65a7975 100644 --- a/storage/CMakeLists.txt +++ b/storage/CMakeLists.txt @@ -50,7 +50,9 @@ endif() # See if mmap can be used to allocate Linux hugetlb pages. include(CheckCXXSourceCompiles) CHECK_CXX_SOURCE_COMPILES(" + #ifndef _GNU_SOURCE #define _GNU_SOURCE + #endif #include <sys/mman.h> int main() {