aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/seafile/files/patch-daemon_http-tx-mgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/seafile/files/patch-daemon_http-tx-mgr.c')
-rw-r--r--net-mgmt/seafile/files/patch-daemon_http-tx-mgr.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-mgmt/seafile/files/patch-daemon_http-tx-mgr.c b/net-mgmt/seafile/files/patch-daemon_http-tx-mgr.c
new file mode 100644
index 00000000000..5d25c4ef1e7
--- /dev/null
+++ b/net-mgmt/seafile/files/patch-daemon_http-tx-mgr.c
@@ -0,0 +1,25 @@
+--- daemon/http-tx-mgr.c.orig 2015-09-21 03:42:11 UTC
++++ daemon/http-tx-mgr.c
+@@ -58,6 +58,22 @@
+ #define USER_AGENT_OS "Linux"
+ #endif
+
++#ifdef __FreeBSD__
++#define USER_AGENT_OS "FreeBSD"
++#endif
++
++#ifdef __DragonFly__
++#define USER_AGENT_OS "DragonFly"
++#endif
++
++#ifdef __NetBSD__
++#define USER_AGENT_OS "NetBSD"
++#endif
++
++#ifdef __OpenBSD__
++#define USER_AGENT_OS "OpenBSD"
++#endif
++
+ struct _Connection {
+ CURL *curl;
+ gint64 ctime; /* Used to clean up unused connection. */