summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-Avoid-libreswan-build-failures-on-mipsel-Closes-8544.patch
blob: fcf3e11a2fcd1f01caf7a400451e065421c578c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Fri, 10 Feb 2023 15:55:36 -0500
Subject: Avoid libreswan build failures on mipsel (Closes: #854472)

Forwarded: https://bugzilla.mozilla.org/show_bug.cgi?id=1815947

Bug 1815947 - Fix build failure with glibc and uclibc while including sgidefs.h

Let's include glibc and uclibc <sgidefs.h> while with musl let's include Linux
<asm/sgidefs.h>.
---
 nspr/pr/include/md/_linux.cfg | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nspr/pr/include/md/_linux.cfg b/nspr/pr/include/md/_linux.cfg
index 2232820..009d5e5 100644
--- a/nspr/pr/include/md/_linux.cfg
+++ b/nspr/pr/include/md/_linux.cfg
@@ -499,7 +499,11 @@
 #elif defined(__mips__)
 
 /* For _ABI64 */
+#if defined(__GLIBC__) || defined(__UCLIBC__)
+#include <sgidefs.h>
+#else
 #include <asm/sgidefs.h>
+#endif
 
 #ifdef __MIPSEB__
 #define IS_BIG_ENDIAN 1