Changeset: a8012865510f for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/a8012865510f Modified Files: testing/CMakeLists.txt testing/fallocate.c Branch: Jun2023 Log Message:
use monetdb_config.h file to conditionaly build new fallocate function diffs (27 lines): diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt --- a/testing/CMakeLists.txt +++ b/testing/CMakeLists.txt @@ -186,6 +186,7 @@ configure_file(sqllogictest.py if (NOT WIN32) add_library(mtest_fallocate SHARED) target_sources(mtest_fallocate PRIVATE fallocate.c) + target_link_libraries(mtest_fallocate PRIVATE monetdb_config_header) target_link_libraries(mtest_fallocate) endif() diff --git a/testing/fallocate.c b/testing/fallocate.c --- a/testing/fallocate.c +++ b/testing/fallocate.c @@ -1,5 +1,7 @@ //#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include <monetdb_config.h> +#if HAVE_FALLOCATE #include <fcntl.h> #include <dlfcn.h> #include <stdlib.h> @@ -24,3 +26,4 @@ fallocate(int fd, int mode, off_t offset } return real_fallocate(fd, mode, offset, len); } +#endif _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org