diff --git a/include/tarantool_eio.h b/include/tarantool_eio.h index 7d2885530d902d72984e4884273e75fa46ac1e7c..241be1b18427f627d6b875f5e400dd427cae4a8a 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 ffe13cd7bc05fec6db59c4bfe799ccba0e09d381..a542d4a35e2f1acdbc82c4dcabbb44ddbb9760c2 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) #