[CRIU] [PATCH 4/9] alpine: use sys/wait.h instead of wait.h

Andrei Vagin avagin at openvz.org
Sat Sep 30 01:41:40 MSK 2017


From: Andrei Vagin <avagin at virtuozzo.com>

In file included from socket_listen.c:22:0:
/usr/include/wait.h:1:2: error: #warning redirecting incorrect #include <wait.h> to <sys/wait.h> [-Werror=cpp]
 #warning redirecting incorrect #include <wait.h> to <sys/wait.h>

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 test/zdtm/static/socket6_udp.c         | 2 +-
 test/zdtm/static/socket_aio.c          | 2 +-
 test/zdtm/static/socket_listen.c       | 2 +-
 test/zdtm/static/socket_udp.c          | 2 +-
 test/zdtm/static/socket_udp_shutdown.c | 2 +-
 test/zdtm/static/socket_udplite.c      | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/zdtm/static/socket6_udp.c b/test/zdtm/static/socket6_udp.c
index d1c39c729..b81a6afee 100644
--- a/test/zdtm/static/socket6_udp.c
+++ b/test/zdtm/static/socket6_udp.c
@@ -13,7 +13,7 @@ const char *test_author = "Cyrill Gorcunov <gorcunov at openvz.org>\n";
 #include <stdlib.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>  /* for sockaddr_in and inet_ntoa() */
-#include <wait.h>
+#include <sys/wait.h>
 
 static int port = 8880;
 static char buf[64];
diff --git a/test/zdtm/static/socket_aio.c b/test/zdtm/static/socket_aio.c
index b8966b023..b276adb2b 100644
--- a/test/zdtm/static/socket_aio.c
+++ b/test/zdtm/static/socket_aio.c
@@ -16,7 +16,7 @@ const char *test_author = "Andrew Vagin <avagin at parallels.com>";
 #include <errno.h>
 #include <stdlib.h>
 #include <aio.h>
-#include <wait.h>
+#include <sys/wait.h>
 #include <netinet/tcp.h>
 
 static int port = 8880;
diff --git a/test/zdtm/static/socket_listen.c b/test/zdtm/static/socket_listen.c
index f11d37959..aae3c7993 100644
--- a/test/zdtm/static/socket_listen.c
+++ b/test/zdtm/static/socket_listen.c
@@ -19,7 +19,7 @@ const char *test_author = "Stanislav Kinsbursky <skinsbursky at openvz.org>";
 #include <unistd.h>
 #include <errno.h>
 #include <stdlib.h>
-#include <wait.h>
+#include <sys/wait.h>
 #include <netinet/tcp.h>
 
 static int port = 8880;
diff --git a/test/zdtm/static/socket_udp.c b/test/zdtm/static/socket_udp.c
index 5e24a8b0f..36a954237 100644
--- a/test/zdtm/static/socket_udp.c
+++ b/test/zdtm/static/socket_udp.c
@@ -18,7 +18,7 @@ const char *test_author = "Pavel Emelyanov <xemul at parallels.com<>\n";
 #include <stdlib.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>  /* for sockaddr_in and inet_ntoa() */
-#include <wait.h>
+#include <sys/wait.h>
 
 static int port = 8880;
 static char buf[8];
diff --git a/test/zdtm/static/socket_udp_shutdown.c b/test/zdtm/static/socket_udp_shutdown.c
index 4e2834af9..ae148c5fa 100644
--- a/test/zdtm/static/socket_udp_shutdown.c
+++ b/test/zdtm/static/socket_udp_shutdown.c
@@ -8,7 +8,7 @@
 #include <stdlib.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>  /* for sockaddr_in and inet_ntoa() */
-#include <wait.h>
+#include <sys/wait.h>
 
 #include "zdtmtst.h"
 
diff --git a/test/zdtm/static/socket_udplite.c b/test/zdtm/static/socket_udplite.c
index 8218ff556..d2510ef2f 100644
--- a/test/zdtm/static/socket_udplite.c
+++ b/test/zdtm/static/socket_udplite.c
@@ -18,7 +18,7 @@ const char *test_author = "Pavel Emelyanov <xemul at parallels.com<>\n";
 #include <stdlib.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>  /* for sockaddr_in and inet_ntoa() */
-#include <wait.h>
+#include <sys/wait.h>
 
 static int port = 8890;
 static char buf[8];
-- 
2.13.3



More information about the CRIU mailing list