diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-14 19:42:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-14 19:42:13 +0200 |
commit | 8dc4c7292364d31cfb8afa8a67984b78b657b192 (patch) | |
tree | 7e01972775132d7c50a7cc2f785a7f3ce9bb79a3 /src/if_ruby.c | |
parent | a8356bc1734195d130c6eeaf4858356ae3a3f722 (diff) |
patch 8.1.1174: cannot build with Ruby 1.8v8.1.1174
Problem: Cannot build with Ruby 1.8. (Tom G. Christensen)
Solution: Include ruby/st.h. (Ozaki Kiichi, closes #4257)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <ruby/encoding.h> #endif +#ifndef RUBY19_OR_LATER +# include <st.h> // 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 _ |