summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index a635b5bdd11..df80fc7bb66 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -949,8 +949,11 @@ static void do_exec(struct st_query* q)
while (fgets(buf, sizeof(buf), res_file))
replace_dynstr_append_mem(ds, buf, strlen(buf));
}
-
+#ifndef __WIN__
error= pclose(res_file);
+#else
+ error= _pclose(res_file);
+#endif
if (error != 0)
die("command \"%s\" failed", cmd);