diff --git a/japanese/skkserv/Makefile b/japanese/skkserv/Makefile index 011eadcf0bd8..93b2333243d6 100644 --- a/japanese/skkserv/Makefile +++ b/japanese/skkserv/Makefile @@ -7,6 +7,7 @@ PORTNAME= skkserv PORTVERSION= 9.6 +PORTREVISION= 1 CATEGORIES= japanese MASTER_SITES= ${MASTER_SITE_PORTS_JP} DISTNAME= skk${PORTVERSION} diff --git a/japanese/skkserv/files/patch-skkserv.c b/japanese/skkserv/files/patch-skkserv.c new file mode 100644 index 000000000000..901a4c14b6e0 --- /dev/null +++ b/japanese/skkserv/files/patch-skkserv.c @@ -0,0 +1,11 @@ +--- skkserv/skkserv.c.orig 2008-01-01 20:00:27.000000000 +0100 ++++ skkserv/skkserv.c 2008-01-01 20:01:01.000000000 +0100 +@@ -476,7 +476,7 @@ + + if (FD_ISSET(initsock, &readfds)) { + len = sizeof(from); +- if ((clientsock[nclients ++] = accept(initsock, &from, &len)) < 0) { ++ if ((clientsock[nclients ++] = accept(initsock, (struct sockaddr*)&from, &len)) < 0) { + err("accept error; something wrong happened with the socket"); + } + if (nclients >= MAXDTAB - 3 - debug * 2) { diff --git a/japanese/skkserv/files/patch-skkserv.h b/japanese/skkserv/files/patch-skkserv.h new file mode 100644 index 000000000000..c6c891559b2e --- /dev/null +++ b/japanese/skkserv/files/patch-skkserv.h @@ -0,0 +1,19 @@ +--- skkserv/skkserv.h.orig 1997-01-20 20:16:36.000000000 +0100 ++++ skkserv/skkserv.h 2008-01-01 19:58:41.000000000 +0100 +@@ -37,6 +37,8 @@ + /* Necessary for SunOS 3.x and maybe other old systems */ + + #include ++#include ++#include + + #include + #ifdef HAVE_SYS_IOCTL_H +@@ -44,6 +46,7 @@ + #endif + #include + #include ++#include + #include + #include + #include