summaryrefslogtreecommitdiff
blob: ac8c35c565ec21fe016e5de71461cc678e92dfcb (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
https://github.com/gssapi/gssproxy/commit/f6ab3193e64ecc9db4d253b6dd99991f461b6081
From: Brahmajit Das <brahmajit.xyz@gmail.com>
Date: Wed, 31 May 2023 04:53:23 +0000
Subject: [PATCH] Fix build with musl and llvm

Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
--- a/src/gp_util.c
+++ b/src/gp_util.c
@@ -63,7 +63,7 @@ char *gp_strerror(int errnum)
     static __thread char buf[MAX_GP_STRERROR];
     int saved_errno = errno;
 
-#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE)
+#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) || !defined(__GLIBC__)
     /* XSI version */
     int ret;
 
--- a/tests/userproxytest.c
+++ b/tests/userproxytest.c
@@ -5,6 +5,7 @@
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <sys/wait.h>
-- 
2.40.1