aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-09-10 04:26:03 +0800
committerdelphij <delphij@FreeBSD.org>2011-09-10 04:26:03 +0800
commite0bbf9b01558aacd7d50c338f82d396d11420558 (patch)
tree3b83b0427c2c6b679cef6c4a37c67d7998fe368f /net
parent07bddbd11429a38b251b9930adf7eefc177a3313 (diff)
downloadfreebsd-ports-gnome-e0bbf9b01558aacd7d50c338f82d396d11420558.tar.gz
freebsd-ports-gnome-e0bbf9b01558aacd7d50c338f82d396d11420558.tar.zst
freebsd-ports-gnome-e0bbf9b01558aacd7d50c338f82d396d11420558.zip
Unbreak after __FreeBSD_version 900041.
Diffstat (limited to 'net')
-rw-r--r--net/iet/files/patch-freebsd925
1 files changed, 25 insertions, 0 deletions
diff --git a/net/iet/files/patch-freebsd9 b/net/iet/files/patch-freebsd9
index d0f486194ef3..dec7ed8d8e0d 100644
--- a/net/iet/files/patch-freebsd9
+++ b/net/iet/files/patch-freebsd9
@@ -43,3 +43,28 @@ index 611f839..1c3c391 100644
int iet_ioctl(struct cdev *dev, unsigned long cmd, caddr_t arg, int fflag, struct thread *td);
#endif
+--- ./kernel/conn.c.orig 2010-04-11 08:13:42.000000000 -0700
++++ ./kernel/conn.c 2011-09-09 13:16:38.386740084 -0700
+@@ -250,14 +250,22 @@ static int iet_conn_alloc(struct iscsi_s
+ #ifdef LINUX
+ conn->file = fget(info->fd);
+ #else
++#if __FreeBSD_version < 900041
+ error = fget(curthread, info->fd, &conn->file);
++#else
++ error = fget(curthread, info->fd, 0, &conn->file);
++#endif
+ if (error != 0) {
+ eprintk("failed to get fd %d\n", error);
+ kfree(conn);
+ return error;
+ }
+
++#if __FreeBSD_version < 900041
+ error = fgetsock(curthread, info->fd, &conn->sock, 0);
++#else
++ error = fgetsock(curthread, info->fd, 0, &conn->sock, 0);
++#endif
+ if (error != 0) {
+ eprintk("failed to get sock %d\n", error);
+ fdrop(conn->file, curthread);