From: Christian Brabandt Date: Sun, 18 Jan 2026 14:03:41 +0000 (+0000) Subject: patch 9.1.2091: Ruby integration does not work correctly X-Git-Tag: v9.1.2091^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b67993a64ba1e74da9e2b456228d875d4624b6f;p=thirdparty%2Fvim.git patch 9.1.2091: Ruby integration does not work correctly Problem: Ruby headers define HAVE_FSYNC, which leaks into Vim sources on Windows and changes conditional compilation of buf_T. This causes struct layout mismatches in if_ruby.c and results in a different offset for the b_p_bl property, making Vim::Buffer access fail (after v9.1.2024) Solution: Undefine HAVE_FSYNC after including the Ruby headers. related: #19019 closes: #19206 Signed-off-by: Christian Brabandt --- diff --git a/src/if_ruby.c b/src/if_ruby.c index 60ca11188a..b5b0079ece 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -179,6 +179,9 @@ #ifdef HAVE_DUP # undef HAVE_DUP #endif +#ifdef HAVE_FSYNC +# undef HAVE_FSYNC +#endif // Avoid redefining TRUE/FALSE in vterm.h. #ifdef TRUE diff --git a/src/version.c b/src/version.c index ee2910062b..b85579b95d 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2091, /**/ 2090, /**/