55b90114aa000c492646a313442b1d9f97943872
[feed/packages.git] / net / radsecproxy / patches / 300-gcc10.patch
1 From 0098fbc45e5068ef20ba26910e281f3955299176 Mon Sep 17 00:00:00 2001
2 From: Robert Scheck <robert@fedoraproject.org>
3 Date: Sun, 2 Feb 2020 20:37:16 +0100
4 Subject: [PATCH] Declare pthread_attr as extern in header (fixes #63)
5
6 GCC 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 diff --git a/radsecproxy.c b/radsecproxy.c
13 index a4b1211..b281e21 100644
14 --- a/radsecproxy.c
15 +++ b/radsecproxy.c
16 @@ -84,6 +84,7 @@ extern int optind;
17 extern char *optarg;
18 #endif
19 static const struct protodefs *protodefs[RAD_PROTOCOUNT];
20 +pthread_attr_t pthread_attr;
21
22 /* minimum required declarations to avoid reordering code */
23 struct realm *adddynamicrealmserver(struct realm *realm, char *id);
24 diff --git a/radsecproxy.h b/radsecproxy.h
25 index 3082300..0f20f50 100644
26 --- a/radsecproxy.h
27 +++ b/radsecproxy.h
28 @@ -262,7 +262,7 @@ int radsrv(struct request *rq);
29 void replyh(struct server *server, unsigned char *buf);
30 struct addrinfo *resolve_hostport_addrinfo(uint8_t type, char *hostport);
31 uint8_t *radattr2ascii(struct tlv *attr); /* TODO: mv this to radmsg? */
32 -pthread_attr_t pthread_attr;
33 +extern pthread_attr_t pthread_attr;
34
35 /* Local Variables: */
36 /* c-file-style: "stroustrup" */