- Add patch to fix a 64bit issue.

PR:		ports/89923
Submitted by:	maintainer
This commit is contained in:
Florent Thoumie 2005-12-04 11:12:33 +00:00
parent 68e60927e4
commit 3241c373a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150370
2 changed files with 30 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= scgi
PORTVERSION= 1.8
PORTRVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.mems-exchange.org/software/files/scgi/ \
http://bsdchat.com/dist/dryice/

View File

@ -0,0 +1,29 @@
--- scgi/passfd.c.orig Sun Dec 4 15:49:02 2005
+++ scgi/passfd.c Sun Dec 4 15:49:28 2005
@@ -22,7 +22,7 @@
#include <stddef.h>
-#define CONTROLLEN sizeof (struct cmsghdr) + sizeof (int)
+#define CONTROLLEN sizeof (struct cmsghdr) + sizeof (void*)
static int
recv_fd(int sockfd)
@@ -31,7 +31,7 @@
struct cmsghdr *cmptr = (struct cmsghdr *) tmpbuf;
struct iovec iov[1];
struct msghdr msg;
- char buf[1];
+ void* buf[1];
iov[0].iov_base = buf;
iov[0].iov_len = sizeof (buf);
@@ -56,7 +56,7 @@
struct cmsghdr *cmptr = (struct cmsghdr *) tmpbuf;
struct iovec iov[1];
struct msghdr msg;
- char buf[1];
+ void* buf[1];
iov[0].iov_base = buf;
iov[0].iov_len = 1;