From: Haomai Wang Date: Mon, 25 Jan 2016 15:21:29 +0000 (+0800) Subject: cmake: add default pwritev support now X-Git-Tag: v10.1.0~418^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa7b5056ba031107c7270d6173aab2ed0c6e484c;p=ceph.git cmake: add default pwritev support now Signed-off-by: Haomai Wang --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b1bd607a36c..8b8dbed8f66d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ CHECK_FUNCTION_EXISTS(posix_fallocate HAVE_POSIX_FALLOCATE) CHECK_FUNCTION_EXISTS(syncfs HAVE_SYS_SYNCFS) CHECK_FUNCTION_EXISTS(sync_file_range HAVE_SYNC_FILE_RANGE) CHECK_FUNCTION_EXISTS(mallinfo HAVE_MALLINFO) +CHECK_FUNCTION_EXISTS(pwritev HAVE_PWRITEV) CHECK_INCLUDE_FILES("arpa/inet.h" HAVE_ARPA_INET_H) CHECK_INCLUDE_FILES("boost/random/discrete_distribution.hpp" HAVE_BOOST_RANDOM_DISCRETE_DISTRIBUTION) CHECK_INCLUDE_FILES("dirent.h" HAVE_DIRENT_H) diff --git a/src/include/config-h.in.cmake b/src/include/config-h.in.cmake index 89d7792ee8a9..ceedb6e9dc64 100644 --- a/src/include/config-h.in.cmake +++ b/src/include/config-h.in.cmake @@ -123,6 +123,9 @@ /* Define to 1 if you have the `syncfs' function. */ #cmakedefine HAVE_SYNCFS 1 +/* Define to 1 if you have the `pwritev' function. */ +#cmakedefine HAVE_PWRITEV 1 + /* sync_file_range(2) is supported */ #cmakedefine HAVE_SYNC_FILE_RANGE