summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_redel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/my_redel.c b/mysys/my_redel.c
index 03c1021a954..116cb81f9df 100644
--- a/mysys/my_redel.c
+++ b/mysys/my_redel.c
@@ -77,7 +77,9 @@ end:
int my_copystat(const char *from, const char *to, int MyFlags)
{
struct stat statbuf;
+#if !defined(MSDOS) && !defined(__WIN__) && !defined(__EMX__) && !defined(OS2) && !defined(__NETWARE__)
int res;
+#endif /* MSDOS */
if (stat((char*) from, &statbuf))
{