summaryrefslogtreecommitdiff
path: root/net-p2p/teknap/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-11-14 08:23:17 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-11-14 08:23:17 +0000
commit68ae591488e7d775d4eaa24b7198eb2b9412e334 (patch)
tree7d4cd1633f85b9e3b4506129661c5ecf27db4366 /net-p2p/teknap/files
parent- Fix build with gcc 4.2 (diff)
- Fix build with gcc 4.2
PR: 118006 Submitted by: Pietro Cerutti <gahr@gahr.ch> Approved by: portmgr (erwin)
Diffstat (limited to 'net-p2p/teknap/files')
-rw-r--r--net-p2p/teknap/files/patch-source_share.c11
-rw-r--r--net-p2p/teknap/files/patch-source_timer.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/teknap/files/patch-source_share.c b/net-p2p/teknap/files/patch-source_share.c
new file mode 100644
index 000000000000..265b8f6d82b3
--- /dev/null
+++ b/net-p2p/teknap/files/patch-source_share.c
@@ -0,0 +1,11 @@
+--- source/share.c.orig 2007-11-12 15:41:18.000000000 +0100
++++ source/share.c 2007-11-12 15:43:42.000000000 +0100
+@@ -38,7 +38,7 @@
+
+ static pthread_mutex_t quit_mutex = PTHREAD_MUTEX_INITIALIZER;
+
+-static pthread_mutex_t fserv_struct_mutex = PTHREAD_MUTEX_INITIALIZER;
++pthread_mutex_t fserv_struct_mutex = PTHREAD_MUTEX_INITIALIZER;
+ pthread_mutex_t shared_count_mutex = PTHREAD_MUTEX_INITIALIZER;
+ static void share_thread_signal_setup(void);
+
diff --git a/net-p2p/teknap/files/patch-source_timer.c b/net-p2p/teknap/files/patch-source_timer.c
new file mode 100644
index 000000000000..d1d8c5de7784
--- /dev/null
+++ b/net-p2p/teknap/files/patch-source_timer.c
@@ -0,0 +1,11 @@
+--- source/timer.c.orig 2007-11-12 15:43:52.000000000 +0100
++++ source/timer.c 2007-11-12 15:44:47.000000000 +0100
+@@ -145,7 +145,7 @@
+ * This is put here on purpose -- we dont want any of the above functions
+ * to have any knowledge of this struct.
+ */
+-static TimerList *PendingTimers;
++TimerList *PendingTimers;
+ static char *schedule_timer (TimerList *ntimer);
+
+ static char *current_exec_timer = empty_string;