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

udev: Fix build issue with missing _GNU_SOURCE

CC       src/udev.o
src/udev.c: In function ‘attach_filter’:
src/udev.c:129:40: error: ‘SO_ATTACH_FILTER’ undeclared (first use in this function)
  129 |         if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER,
      |                                        ^~~~~~~~~~~~~~~~
src/udev.c:129: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:11:08 +01:00
parent 12e65dc025
commit 2bc1e914d0

View File

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