No idea how this was possibly working, previously.
@@ -166,6 +166,8 @@ static int NC_check_file_type(const char *path, int flags, void *parameters,
size_t i;
#ifdef HAVE_FILE_LENGTH_I64
__int64 file_len = 0;
+#else
+ struct stat st;
#endif
if(path == NULL || strlen(path)==0)
