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

wired: Fix build issue with missing _GNU_SOURCE

CC       wired/ethdev.o
wired/ethdev.c: In function ‘pae_open’:
wired/ethdev.c:331:40: error: ‘SO_ATTACH_FILTER’ undeclared (first use in this function)
  331 |         if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER,
      |                                        ^~~~~~~~~~~~~~~~
wired/ethdev.c:331: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:12:02 +01:00
parent 2bc1e914d0
commit d5818134bd

View File

@ -24,6 +24,7 @@
#include <config.h>
#endif
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <unistd.h>