eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 88d2718b507c95ca8f78e85eabf4eba1ff4d2c29
parent 30049f582237bb21a64a7e9e4c427b7309b202a9
Author: Marcel Holtmann <marcel@holtmann.org>
Date:   Tue, 10 Feb 2026 09:19:56 +0100

netconfig: Fix build issue with missing _GNU_SOURCE

  CC       src/netconfig.o
src/netconfig.c: In function ‘netconfig_load_settings’:
src/netconfig.c:290:23: error: ‘HOST_NAME_MAX’ undeclared (first use in this function); did you mean ‘XATTR_NAME_MAX’?
  290 |         char hostname[HOST_NAME_MAX + 1];
      |                       ^~~~~~~~~~~~~
      |                       XATTR_NAME_MAX
src/netconfig.c:290:23: note: each undeclared identifier is reported only once for each function it appears in
src/netconfig.c:388:30: error: implicit declaration of function ‘gethostname’; did you mean ‘getsockname’? [-Wimplicit-function-declaration]
  388 |         if (send_hostname && gethostname(hostname, sizeof(hostname)) != 0) {
      |                              ^~~~~~~~~~~
      |                              getsockname
src/netconfig.c:290:14: error: unused variable ‘hostname’ [-Werror=unused-variable]
  290 |         char hostname[HOST_NAME_MAX + 1];
      |              ^~~~~~~~

Diffstat:
Msrc/netconfig.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/netconfig.c b/src/netconfig.c @@ -24,6 +24,7 @@ #include <config.h> #endif +#define _GNU_SOURCE #include <errno.h> #include <arpa/inet.h> #include <net/if_arp.h> @@ -31,6 +32,7 @@ #include <limits.h> #include <string.h> #include <fcntl.h> +#include <sys/param.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h>