diff options
author | ZyX <kp-pav@yandex.ru> | 2016-06-04 22:48:29 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-06-23 21:17:51 +0300 |
commit | 516b7071cafd831ea563b73f6953232f5674cd0c (patch) | |
tree | 1b90a366a70f24fd95d76a506a1e372b0bd778d3 /config | |
parent | 11dda658d6f0c4470a54012df71be73b4e9a5f57 (diff) | |
download | rneovim-516b7071cafd831ea563b73f6953232f5674cd0c.tar.gz rneovim-516b7071cafd831ea563b73f6953232f5674cd0c.tar.bz2 rneovim-516b7071cafd831ea563b73f6953232f5674cd0c.zip |
file: Add buffered reading and writing
Still no busted tests. Not tested without HAVE_PREADV.
Diffstat (limited to 'config')
-rw-r--r-- | config/CMakeLists.txt | 2 | ||||
-rw-r--r-- | config/config.h.in | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index e1e90c6a9d..cf84f8c6a4 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -27,6 +27,7 @@ if(NOT HAVE_SYS_WAIT_H AND UNIX) endif() check_include_files(sys/utsname.h HAVE_SYS_UTSNAME_H) check_include_files(utime.h HAVE_UTIME_H) +check_include_files(sys/uio.h HAVE_SYS_UIO_H) # Functions check_function_exists(fseeko HAVE_FSEEKO) @@ -34,6 +35,7 @@ check_function_exists(getpwent HAVE_GETPWENT) check_function_exists(getpwnam HAVE_GETPWNAM) check_function_exists(getpwuid HAVE_GETPWUID) check_function_exists(uv_translate_sys_error HAVE_UV_TRANSLATE_SYS_ERROR) +check_function_exists(readv HAVE_READV) if(Iconv_FOUND) set(HAVE_ICONV 1) diff --git a/config/config.h.in b/config/config.h.in index 7f16fd1928..4c35b3b1cb 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -49,6 +49,13 @@ #cmakedefine HAVE_WORKING_LIBINTL #cmakedefine UNIX #cmakedefine USE_FNAME_CASE +#cmakedefine HAVE_SYS_UIO_H +#ifdef HAVE_SYS_UIO_H +#cmakedefine HAVE_READV +# ifndef HAVE_READV +# undef HAVE_SYS_UIO_H +# endif +#endif #cmakedefine FEAT_TUI |