From 0dc54861fa67df380ba2a3f6a7b9dcf257e4042d Mon Sep 17 00:00:00 2001 From: Roman Tsisyk <roman@tsisyk.com> Date: Wed, 26 Dec 2012 10:52:25 +0400 Subject: [PATCH] Fix libeio compilation on clang --- include/tarantool_eio.h | 3 +++ src/CMakeLists.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/tarantool_eio.h b/include/tarantool_eio.h index 7d2885530d..241be1b184 100644 --- a/include/tarantool_eio.h +++ b/include/tarantool_eio.h @@ -28,6 +28,9 @@ * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + +#include <stdio.h> +#include <fcntl.h> /* Definition of AT_* constants */ #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ffe13cd7bc..a542d4a35e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -49,6 +49,8 @@ target_link_libraries(ev ${ev_libs}) # # libeio library # +set_source_files_properties(tarantool_eio.c + PROPERTIES COMPILE_FLAGS "-Wno-unused-value -Wno-dangling-else") add_library(eio tarantool_eio.c) # -- GitLab