ports/net-mgmt/seafile-client/files/patch-daemon_http-tx-mgr.c
Richard Gallamore 2b1bd5cd29 Updated to 7.0.1
Port cleanup, ccnet-client will be deleted in the
future.

Changes: https://manual.seafile.com/changelog/client-changelog.html
2019-06-10 07:51:26 +00:00

25 lines
505 B
C

--- daemon/http-tx-mgr.c.orig 2019-06-04 02:14:53 UTC
+++ daemon/http-tx-mgr.c
@@ -69,6 +69,22 @@
#define USER_AGENT_OS "BSD"
#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. */