summaryrefslogtreecommitdiff
path: root/mysys/my_redel.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_redel.c')
-rw-r--r--mysys/my_redel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_redel.c b/mysys/my_redel.c
index 598a728393d..6b0ceb85950 100644
--- a/mysys/my_redel.c
+++ b/mysys/my_redel.c
@@ -77,6 +77,9 @@ end:
int my_copystat(const char *from, const char *to, int MyFlags)
{
struct stat statbuf;
+#if !defined(__WIN__) && !defined(__NETWARE__)
+ int res;
+#endif
if (stat((char*) from, &statbuf))
{