3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2026-02-11 06:58:04 +01:00

netdev: Fix build issue with missing _GNU_SOURCE

CC       src/netdev.o
src/netdev.c: In function ‘pae_open’:
src/netdev.c:6606:40: error: ‘SO_ATTACH_FILTER’ undeclared (first use in this function)
 6606 |         if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER,
      |                                        ^~~~~~~~~~~~~~~~
src/netdev.c:6606:40: note: each undeclared identifier is reported only once for each function it appears in
This commit is contained in:
Marcel Holtmann 2026-02-10 17:10:16 +01:00
parent 98d5015916
commit 12e65dc025

View File

@ -24,6 +24,7 @@
#include <config.h>
#endif
#define _GNU_SOURCE
#include <stdlib.h>
#include <alloca.h>
#include <stdio.h>
@ -32,8 +33,8 @@
#include <linux/if.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <arpa/inet.h>
#include <linux/filter.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <errno.h>