# HG changeset patch # User Christian Brabandt # Date 1455380106 -3600 # Node ID a1b10634a28ae0ad0f6de437d2a64cfd64dfa5d1 # Parent d23f68fc56dfc6f82f3ef4df03d309ab2cf70794 commit https://github.com/vim/vim/commit/d090d7bab5a0d96559579e078dfdcc6d7d4f4713 Author: Bram Moolenaar Date: Sat Feb 13 17:09:53 2016 +0100 patch 7.4.1311 Problem: sock_T is defined too late. Solution: Move it up. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -748,6 +748,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1311, +/**/ 1310, /**/ 1309, diff --git a/src/vim.h b/src/vim.h --- a/src/vim.h +++ b/src/vim.h @@ -1730,6 +1730,14 @@ typedef struct timeval proftime_T; typedef int proftime_T; /* dummy for function prototypes */ #endif +#ifdef FEAT_CHANNEL +# ifdef WIN64 +typedef __int64 sock_T; +# else +typedef int sock_T; +# endif +#endif + /* Include option.h before structs.h, because the number of window-local and * buffer-local options is used there. */ #include "option.h" /* options and default values */ @@ -1970,14 +1978,6 @@ typedef int VimClipboard; /* This is req # define stat(a,b) (access(a,0) ? -1 : stat(a,b)) #endif -#ifdef FEAT_CHANNEL -# ifdef WIN64 -typedef __int64 sock_T; -# else -typedef int sock_T; -# endif -#endif - #include "ex_cmds.h" /* Ex command defines */ #include "proto.h" /* function prototypes */