Problem: sock_T is defined too late.
Solution: Move it up.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1311,
/**/
1310,
/**/
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 */
# 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 */