From d305f6d3ce4e1e09b9e7e02836f20da3faa9dfe1 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Jul 2005 15:39:36 +0200 Subject: [PATCH] Win port fixes client/mysqltest.c: Check for HAVE_SYS_WAIT_H Define WEXITSTATUS if not defined --- client/mysqltest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/mysqltest.c b/client/mysqltest.c index fd8f19332ec..d3e0014aa80 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -60,7 +60,12 @@ #include #include #include /* Our own version of lib */ +#ifdef HAVE_SYS_WAIT_H #include +#endif +#ifndef WEXITSTATUS +# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) +#endif #define MAX_QUERY 131072 #define MAX_VAR_NAME 256 #define MAX_COLUMNS 256