From 8dc4c7292364d31cfb8afa8a67984b78b657b192 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 14 Apr 2019 19:42:13 +0200 Subject: patch 8.1.1174: cannot build with Ruby 1.8 Problem: Cannot build with Ruby 1.8. (Tom G. Christensen) Solution: Include ruby/st.h. (Ozaki Kiichi, closes #4257) --- src/if_ruby.c | 5 ++++- src/version.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/if_ruby.c b/src/if_ruby.c index 2727524f89..6779c23438 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -118,8 +118,11 @@ #ifdef RUBY19_OR_LATER # include #endif +#ifndef RUBY19_OR_LATER +# include // for ST_STOP and ST_CONTINUE +#endif -#undef off_t /* ruby defines off_t as _int64, Mingw uses long */ +#undef off_t // ruby defines off_t as _int64, Mingw uses long #undef EXTERN #undef _ diff --git a/src/version.c b/src/version.c index bc12aae17c..54c15f3108 100644 --- a/src/version.c +++ b/src/version.c @@ -771,6 +771,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1174, /**/ 1173, /**/ -- cgit v1.2.3