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

Submitted by Andrei Vagin on Sept. 29, 2017, 10:41 p.m.

Details

Message ID 20170929224145.6764-4-avagin@openvz.org
State Accepted
Series "Series without cover letter"
Commit cf79de633626c2c0826655f8f95a3557b9755f78
Headers show

Commit Message

Andrei Vagin Sept. 29, 2017, 10:41 p.m.
From: Andrei Vagin <avagin@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@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(-)

Patch hide | download patch | download mbox

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@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@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@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@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@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];