From 9db7b1684d0dc5728070b884dd41a1c47f36db3e Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 8 Sep 2020 20:12:17 +0200 Subject: [PATCH] Fix lefty compile error on Windows The FILE type, a.k.a. struct _iobuf does not have any _cnt field on Windows. Setting HAVE_FILE_CNT to 0 avoids the use of that. None of the other implementation alternatives work either so the canread macro in lefty.c always returns 1. --- windows/include/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/include/config.h b/windows/include/config.h index bd3a2eb22..7e7f66cf8 100644 --- a/windows/include/config.h +++ b/windows/include/config.h @@ -63,7 +63,7 @@ #define HAVE_EXPAT_H 1 /* Define if FILE structure provides _cnt */ -#define HAVE_FILE_CNT 1 +#define HAVE_FILE_CNT 0 /* Define if FILE structure provides _IO_read_end */ /* #undef HAVE_FILE_IO_READ_END */ -- 2.40.0