dbpware-for-solaris/vim/src/vim-7.4.2253-socklen_t.patch
2016-09-24 21:59:30 +02:00

13 lines
431 B
Diff

--- vim-7.4.2253/src/channel.c.socklen_t 2016-08-25 23:19:29.000000000 +0200
+++ vim-7.4.2253/src/channel.c 2016-08-26 11:33:11.314733000 +0200
@@ -52,6 +52,9 @@
# define fd_read(fd, buf, len) read(fd, buf, len)
# define fd_write(sd, buf, len) write(sd, buf, len)
# define fd_close(sd) close(sd)
+# ifndef socklen_t
+typedef int socklen_t;
+# endif
#endif
static void channel_read(channel_T *channel, int part, char *func);