diff --git a/cmake/BuildLibEIO.cmake b/cmake/BuildLibEIO.cmake
index 3f4c59a924f242d9e8f7920e53ee3a7efa4ba5aa..48e7582e5a994bcb55232ace7f1d2a573450b520 100644
--- a/cmake/BuildLibEIO.cmake
+++ b/cmake/BuildLibEIO.cmake
@@ -8,6 +8,10 @@ macro(libeio_build)
     set(eio_compile_flags "${eio_compile_flags} -Wno-unused-value")
     set(eio_compile_flags "${eio_compile_flags} -DENABLE_BUNDLED_LIBEIO=1")
     set(eio_compile_flags "${eio_compile_flags} -DEIO_STACKSIZE=0")
+    if (TARGET_OS_LINUX)
+        set(eio_compile_flags
+            "${eio_compile_flags} -DHAVE_SYS_PRCTL_H -DHAVE_PRCTL_SET_NAME")
+    endif ()
 
     set(eio_src
         ${PROJECT_SOURCE_DIR}/third_party/tarantool_eio.c