File: 0002-Add-USER_AGENT_OS-Macro-for-hurd-i386.patch

package info (click to toggle)
seafile 9.0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,180 kB
  • sloc: ansic: 44,521; python: 6,601; sh: 272; makefile: 268; cpp: 93
file content (23 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Moritz Schlarb <schlarbm@uni-mainz.de>
Date: Wed, 21 Dec 2022 10:32:43 +0100
Subject: Add USER_AGENT_OS Macro for hurd-i386

---
 daemon/http-tx-mgr.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/daemon/http-tx-mgr.c b/daemon/http-tx-mgr.c
index 4bd8d1d..52159e4 100644
--- a/daemon/http-tx-mgr.c
+++ b/daemon/http-tx-mgr.c
@@ -72,6 +72,10 @@
 #define USER_AGENT_OS "BSD"
 #endif
 
+#ifdef __gnu_hurd__
+#define USER_AGENT_OS "GNU/Hurd"
+#endif
+
 struct _Connection {
     CURL *curl;
     gint64 ctime;               /* Used to clean up unused connection. */