Skip to content

Commit

Permalink
Declare pthread_attr as extern in header (fixes #63)
Browse files Browse the repository at this point in the history
GCC 10 compatibility as per https://gcc.gnu.org/gcc-10/porting_to.html
  • Loading branch information
Robert Scheck committed Feb 2, 2020
1 parent af18128 commit 0098fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ extern int optind;
extern char *optarg;
#endif
static const struct protodefs *protodefs[RAD_PROTOCOUNT];
pthread_attr_t pthread_attr;

/* minimum required declarations to avoid reordering code */
struct realm *adddynamicrealmserver(struct realm *realm, char *id);
Expand Down
2 changes: 1 addition & 1 deletion radsecproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ int radsrv(struct request *rq);
void replyh(struct server *server, unsigned char *buf);
struct addrinfo *resolve_hostport_addrinfo(uint8_t type, char *hostport);
uint8_t *radattr2ascii(struct tlv *attr); /* TODO: mv this to radmsg? */
pthread_attr_t pthread_attr;
extern pthread_attr_t pthread_attr;

/* Local Variables: */
/* c-file-style: "stroustrup" */
Expand Down

0 comments on commit 0098fbc

Please sign in to comment.