diff --git a/file.c b/file.c
index 3b0cd67..56f2b50 100644
--- a/file.c
+++ b/file.c
@@ -4301,7 +4301,6 @@ struct utimbuf {
#ifdef __CYGWIN__
#include <winerror.h>
-extern unsigned long __attribute__((stdcall)) GetLastError(void);
#endif
static VALUE