]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2091: Ruby integration does not work correctly v9.1.2091
authorChristian Brabandt <cb@256bit.org>
Sun, 18 Jan 2026 14:03:41 +0000 (14:03 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 18 Jan 2026 14:05:32 +0000 (14:05 +0000)
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 <cb@256bit.org>
src/if_ruby.c
src/version.c

index 60ca11188ac940c9bd5598a86c7fdc8e76ed830e..b5b0079ece8fa61b27f9976326023c04501c63c5 100644 (file)
 #ifdef HAVE_DUP
 # undef HAVE_DUP
 #endif
+#ifdef HAVE_FSYNC
+# undef HAVE_FSYNC
+#endif
 
 // Avoid redefining TRUE/FALSE in vterm.h.
 #ifdef TRUE
index ee2910062b8f883b76cc1842b2d26d5ba37cbbcf..b85579b95dfcf69a38edf43ea9a6409759393f18 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2091,
 /**/
     2090,
 /**/