Skip to content

Commit

Permalink
fix cmake _GNU_SOURCE warnings (netdata#16761)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Jan 11, 2024
1 parent af042f7 commit 744bcf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mqtt_websockets/src/mqtt_ng.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include <stdint.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions mqtt_websockets/src/mqtt_wss_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
//
// You should have received a copy of the GNU General Public License along with this program.
// If not, see <https://www.gnu.org/licenses/>.
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include "mqtt_wss_client.h"
#include "mqtt_ng.h"
Expand Down

0 comments on commit 744bcf3

Please sign in to comment.