summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-07-01 15:39:36 +0200
committerunknown <msvensson@neptunus.(none)>2005-07-01 15:39:36 +0200
commitd305f6d3ce4e1e09b9e7e02836f20da3faa9dfe1 (patch)
treecd74bb5257ed47febb5981e96701332fffc8a7ee /client
parentb608f091dbf628db32e67e9a62f3045f6dcf2ed7 (diff)
downloadmariadb-git-d305f6d3ce4e1e09b9e7e02836f20da3faa9dfe1.tar.gz
Win port fixes
client/mysqltest.c: Check for HAVE_SYS_WAIT_H Define WEXITSTATUS if not defined
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c5
1 files changed, 5 insertions, 0 deletions
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 <sys/stat.h>
#include <violite.h>
#include <regex.h> /* Our own version of lib */
+#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
+#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