summaryrefslogtreecommitdiff
path: root/net/dc_gui2/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'net/dc_gui2/patches/patch-ac')
-rw-r--r--net/dc_gui2/patches/patch-ac29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/dc_gui2/patches/patch-ac b/net/dc_gui2/patches/patch-ac
new file mode 100644
index 00000000000..eef57c036ca
--- /dev/null
+++ b/net/dc_gui2/patches/patch-ac
@@ -0,0 +1,29 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/06/10 13:21:52 wiz Exp $
+
+--- src/callbacks.c.orig Sun Jun 1 10:02:59 2003
++++ src/callbacks.c
+@@ -30,7 +30,13 @@
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ #include <math.h>
++#ifdef __linux__
+ #include <linux/sem.h>
++#else
++#ifndef SEMVMX
++#define SEMVMX 32767 /* semaphore maximum value */
++#endif
++#endif
+ #include <fcntl.h>
+ #include <signal.h>
+ #include <dirent.h>
+@@ -71,6 +77,10 @@
+ #include "gtk_helper.h"
+ #include "network.h"
+ #include "custom_hublist_tree.h"
++
++#ifndef MSG_NOSIGNAL
++#define MSG_NOSIGNAL 0
++#endif
+
+ static void build_start_dl_popup(int from_panel);
+ void on_load_selected_share_lists_button_clicked (GtkButton *button, gpointer user_data);