mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2026-02-11 06:58:04 +01:00
tools: Fix build issue with missing _GNU_SOURCE
CC tools/probe-req.o
tools/probe-req.c: In function ‘get_interface_callback’:
tools/probe-req.c:122:22: error: storage size of ‘ifr’ isn’t known
122 | struct ifreq ifr;
| ^~~
tools/probe-req.c:155:42: error: ‘IFF_UP’ undeclared (first use in this function)
155 | if (r == -1 || !(ifr.ifr_flags & IFF_UP))
| ^~~~~~
tools/probe-req.c:155:42: note: each undeclared identifier is reported only once for each function it appears in
tools/probe-req.c:122:22: error: unused variable ‘ifr’ [-Werror=unused-variable]
122 | struct ifreq ifr;
| ^~~
This commit is contained in:
parent
6116554d63
commit
98d5015916
@ -24,6 +24,7 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user