blob: 352009b8905d82bcffca090ae9b795da6b0bce00 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 0098fbc45e5068ef20ba26910e281f3955299176 Mon Sep 17 00:00:00 2001
2From: Robert Scheck <robert@fedoraproject.org>
3Date: Sun, 2 Feb 2020 20:37:16 +0100
4Subject: [PATCH] Declare pthread_attr as extern in header (fixes #63)
5
6GCC 10 compatibility as per https://gcc.gnu.org/gcc-10/porting_to.html
7---
8 radsecproxy.c | 1 +
9 radsecproxy.h | 2 +-
10 2 files changed, 2 insertions(+), 1 deletion(-)
11
12--- a/radsecproxy.c
13+++ b/radsecproxy.c
14@@ -84,6 +84,7 @@ extern int optind;
15 extern char *optarg;
16 #endif
17 static const struct protodefs *protodefs[RAD_PROTOCOUNT];
18+pthread_attr_t pthread_attr;
19
20 /* minimum required declarations to avoid reordering code */
21 struct realm *adddynamicrealmserver(struct realm *realm, char *id);
22--- a/radsecproxy.h
23+++ b/radsecproxy.h
24@@ -262,7 +262,7 @@ int radsrv(struct request *rq);
25 void replyh(struct server *server, unsigned char *buf);
26 struct addrinfo *resolve_hostport_addrinfo(uint8_t type, char *hostport);
27 uint8_t *radattr2ascii(struct tlv *attr); /* TODO: mv this to radmsg? */
28-pthread_attr_t pthread_attr;
29+extern pthread_attr_t pthread_attr;
30
31 /* Local Variables: */
32 /* c-file-style: "stroustrup" */