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.

32 lines
1.1 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. --- a/radsecproxy.c
  11. +++ b/radsecproxy.c
  12. @@ -84,6 +84,7 @@ extern int optind;
  13. extern char *optarg;
  14. #endif
  15. static const struct protodefs *protodefs[RAD_PROTOCOUNT];
  16. +pthread_attr_t pthread_attr;
  17. /* minimum required declarations to avoid reordering code */
  18. struct realm *adddynamicrealmserver(struct realm *realm, char *id);
  19. --- a/radsecproxy.h
  20. +++ b/radsecproxy.h
  21. @@ -262,7 +262,7 @@ int radsrv(struct request *rq);
  22. void replyh(struct server *server, unsigned char *buf);
  23. struct addrinfo *resolve_hostport_addrinfo(uint8_t type, char *hostport);
  24. uint8_t *radattr2ascii(struct tlv *attr); /* TODO: mv this to radmsg? */
  25. -pthread_attr_t pthread_attr;
  26. +extern pthread_attr_t pthread_attr;
  27. /* Local Variables: */
  28. /* c-file-style: "stroustrup" */