summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp_sys.c2
-rw-r--r--win32/win32.c1
-rw-r--r--win32/win32.h2
3 files changed, 2 insertions, 3 deletions
diff --git a/pp_sys.c b/pp_sys.c
index c81e67fec2..5f00bbee53 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3633,11 +3633,13 @@ PP(pp_chdir)
#endif
RETURN;
+#ifdef HAS_FCHDIR
nuts:
report_evil_fh(gv);
SETERRNO(EBADF,RMS_IFI);
PUSHi(0);
RETURN;
+#endif
}
diff --git a/win32/win32.c b/win32/win32.c
index 6024623356..1510805da9 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3247,7 +3247,6 @@ win32_chsize(int fd, Off_t size)
retval = -1;
}
}
-finish:
win32_lseek(fd, cur, SEEK_SET);
return retval;
#else
diff --git a/win32/win32.h b/win32/win32.h
index 2d5eda9fdf..5a48b0b385 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -243,8 +243,6 @@ typedef long gid_t;
typedef unsigned short mode_t;
#endif
-#pragma warning(disable: 4102) /* "unreferenced label" */
-
#if _MSC_VER < 1800
#define isnan _isnan /* Defined already in VC++ 12.0 */
#endif