diff options
author | arved <arved@FreeBSD.org> | 2008-01-02 03:03:36 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2008-01-02 03:03:36 +0800 |
commit | e40ce5d918d9e2b654d306173432caccd9b9d82f (patch) | |
tree | b30625ef83ba348fb6fb35d51e736f308adec555 /japanese/skkserv | |
parent | 5922b0430158d9cf4cecfae9088e31a67dafcac7 (diff) | |
download | freebsd-ports-gnome-e40ce5d918d9e2b654d306173432caccd9b9d82f.tar.gz freebsd-ports-gnome-e40ce5d918d9e2b654d306173432caccd9b9d82f.tar.zst freebsd-ports-gnome-e40ce5d918d9e2b654d306173432caccd9b9d82f.zip |
Fix segfault on amd64
PR: 118996
Submitted by KOIE Hidetaka
Diffstat (limited to 'japanese/skkserv')
-rw-r--r-- | japanese/skkserv/Makefile | 1 | ||||
-rw-r--r-- | japanese/skkserv/files/patch-skkserv.c | 11 | ||||
-rw-r--r-- | japanese/skkserv/files/patch-skkserv.h | 19 |
3 files changed, 31 insertions, 0 deletions
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 <stdio.h> ++#include <stdlib.h> ++#include <string.h> + + #include <sys/types.h> + #ifdef HAVE_SYS_IOCTL_H +@@ -44,6 +46,7 @@ + #endif + #include <sys/socket.h> + #include <netinet/in.h> ++#include <arpa/inet.h> + #include <netdb.h> + #include <signal.h> + #include <errno.h> |