Nyffenegger wrote: > I am trying to compile vim 8 on Windows with mingw. > > These are the steps I executed: > > git clone https://github.com/vim/vim.git > cd vim\src > \mingw\bin\mingw32-make.exe -f Make_ming.mak ARCH=i686 > > The compilation of diff.c failes with the following error message:diff.c: In > function 'ex_diffpatch': > diff.c:891:12: error: storage size of 'st' isn't known > diff.c:891:12: warning: unused variable 'st' [-Wunused-variable] > mingw32-make: *** [gobji686/diff.o] Error 1 > > Is there something I can do about it? > > Thanks for any pointer.
Sure, you can modify vim.h and change size_T from _stat64 to stat and comment HAVE_STAT64, this works for me index a787575..308c9cd 100644 --- a/src/vim.h +++ b/src/vim.h @@ -2093,8 +2093,8 @@ typedef int VimClipboard; /* This is required for the prototypes. */ /* Use 64-bit stat structure if available. */ #if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__) -# define HAVE_STAT64 -typedef struct _stat64 stat_T; +//# define HAVE_STAT64 +typedef struct stat stat_T; #else typedef struct stat stat_T; #endif -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.