Skip to content

Commit

Permalink
worker.h: Fix compiler warning for _GNU_SOURCE
Browse files Browse the repository at this point in the history
  • Loading branch information
hessu committed Jun 3, 2024
1 parent 54ac221 commit 40a506f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
#ifndef WORKER_H
#define WORKER_H

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifndef __USE_UNIX98
#define __USE_UNIX98 /* to get PTHREAD_MUTEX_RECURSIVE on Linux */
#endif
Expand Down Expand Up @@ -140,6 +142,8 @@ struct pbuf_t {
char symbol[3]; /* 2(+1) chars of symbol, if any, NUL for not found */
char is_free; /* 1: in global free list, 0: not in global free list */

Aprsis2__ISPacket is2packet;

char data[1]; /* contains the whole packet, including CRLF, ready to transmit */
};

Expand Down

0 comments on commit 40a506f

Please sign in to comment.