aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorvsevolod <vsevolod@FreeBSD.org>2011-06-24 19:51:20 +0800
committervsevolod <vsevolod@FreeBSD.org>2011-06-24 19:51:20 +0800
commitaa580a26c0f5e2dd9c012fefe3d68a3e34aa5061 (patch)
treea5b31364986b0eb5742cc0807988b38a2f507c8a /net
parent323369228a3396c0fa0eff8ec5bcacd7747bc464 (diff)
downloadfreebsd-ports-gnome-aa580a26c0f5e2dd9c012fefe3d68a3e34aa5061.tar.gz
freebsd-ports-gnome-aa580a26c0f5e2dd9c012fefe3d68a3e34aa5061.tar.zst
freebsd-ports-gnome-aa580a26c0f5e2dd9c012fefe3d68a3e34aa5061.zip
Fix build with clang
Diffstat (limited to 'net')
-rw-r--r--net/beanstalkd/Makefile1
-rw-r--r--net/beanstalkd/files/patch-conn.h13
-rw-r--r--net/beanstalkd/files/patch-tube.h17
3 files changed, 31 insertions, 0 deletions
diff --git a/net/beanstalkd/Makefile b/net/beanstalkd/Makefile
index 87f55779f01c..73be245177c3 100644
--- a/net/beanstalkd/Makefile
+++ b/net/beanstalkd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= beanstalkd
PORTVERSION= 1.4.6
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://cloud.github.com/downloads/kr/beanstalkd/
diff --git a/net/beanstalkd/files/patch-conn.h b/net/beanstalkd/files/patch-conn.h
new file mode 100644
index 000000000000..a46c764f4d40
--- /dev/null
+++ b/net/beanstalkd/files/patch-conn.h
@@ -0,0 +1,13 @@
+--- conn.h.orig 2011-06-24 15:38:41.000000000 +0400
++++ conn.h 2011-06-24 15:39:11.000000000 +0400
+@@ -72,9 +72,9 @@
+
+ job out_job;
+ int out_job_sent;
+- struct job reserved_jobs; /* doubly-linked list header */
+ tube use;
+ struct ms watch;
++ struct job reserved_jobs; /* doubly-linked list header */
+ };
+
+ conn make_conn(int fd, char start_state, tube use, tube watch);
diff --git a/net/beanstalkd/files/patch-tube.h b/net/beanstalkd/files/patch-tube.h
new file mode 100644
index 000000000000..133b49692e2c
--- /dev/null
+++ b/net/beanstalkd/files/patch-tube.h
@@ -0,0 +1,17 @@
+--- tube.h.orig 2011-06-24 15:37:57.000000000 +0400
++++ tube.h 2011-06-24 15:38:13.000000000 +0400
+@@ -35,13 +35,13 @@
+ char name[MAX_TUBE_NAME_LEN];
+ struct pq ready;
+ struct pq delay;
+- struct job buried;
+ struct ms waiting; /* set of conns */
+ struct stats stat;
+ unsigned int using_ct;
+ unsigned int watching_ct;
+ usec pause;
+ usec deadline_at;
++ struct job buried;
+ };
+
+ extern struct ms tubes;