You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.3 KiB

  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. GCC 10 compatibility as per https://gcc.gnu.org/gcc-10/porting_to.html
  6. ---
  7. radsecproxy.c | 1 +
  8. radsecproxy.h | 2 +-
  9. 2 files changed, 2 insertions(+), 1 deletion(-)
  10. diff --git a/radsecproxy.c b/radsecproxy.c
  11. index a4b1211..b281e21 100644
  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. /* minimum required declarations to avoid reordering code */
  20. struct realm *adddynamicrealmserver(struct realm *realm, char *id);
  21. diff --git a/radsecproxy.h b/radsecproxy.h
  22. index 3082300..0f20f50 100644
  23. --- a/radsecproxy.h
  24. +++ b/radsecproxy.h
  25. @@ -262,7 +262,7 @@ int radsrv(struct request *rq);
  26. void replyh(struct server *server, unsigned char *buf);
  27. struct addrinfo *resolve_hostport_addrinfo(uint8_t type, char *hostport);
  28. uint8_t *radattr2ascii(struct tlv *attr); /* TODO: mv this to radmsg? */
  29. -pthread_attr_t pthread_attr;
  30. +extern pthread_attr_t pthread_attr;
  31. /* Local Variables: */
  32. /* c-file-style: "stroustrup" */