diff --git a/src/box/memtx_engine.cc b/src/box/memtx_engine.cc
index 362a358107c7cdfbfc99873900ac6b77f8244071..71ea5d5c6731dfebe9efb26276771886d355cdf9 100644
--- a/src/box/memtx_engine.cc
+++ b/src/box/memtx_engine.cc
@@ -40,6 +40,7 @@
 #include "request.h"
 #include <stdlib.h>
 #include <string.h>
+#include <sys/wait.h>
 #include "box.h"
 #include "iproto_constants.h"
 #include "xrow.h"
diff --git a/src/box/recovery.h b/src/box/recovery.h
index 540b4b159694e4b9c2d59466247b1c0d64323414..af8bb4df88388e1996fec68639dacae46f6eba8b 100644
--- a/src/box/recovery.h
+++ b/src/box/recovery.h
@@ -30,6 +30,7 @@
  */
 #include <stdbool.h>
 #include <netinet/in.h>
+#include <sys/socket.h>
 
 #include "trivia/util.h"
 #include "third_party/tarantool_ev.h"