From 1eaf9012b10e4688a064a571c820fe29a9f00c12 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 12 Sep 2024 19:15:27 +0200 Subject: [PATCH] Include , fixing the build on GNU/Hurd --- debian/patches/series | 1 + .../lib-user_busy.c-Include-utmpx.h.patch | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 debian/patches/upstream/lib-user_busy.c-Include-utmpx.h.patch diff --git a/debian/patches/series b/debian/patches/series index fa006de5..3cb3a902 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -9,3 +9,4 @@ debian/tests-libsubid-04_nss-fix-setting-basedir.patch debian/Adapt-login.defs-for-Debian.patch debian/Define-LOGIN_NAME_MAX-on-HURD.patch debian/Stop-building-programs-we-do-not-install.patch +upstream/lib-user_busy.c-Include-utmpx.h.patch diff --git a/debian/patches/upstream/lib-user_busy.c-Include-utmpx.h.patch b/debian/patches/upstream/lib-user_busy.c-Include-utmpx.h.patch new file mode 100644 index 00000000..24b6a905 --- /dev/null +++ b/debian/patches/upstream/lib-user_busy.c-Include-utmpx.h.patch @@ -0,0 +1,26 @@ +From b2b37863a62af83deb21284ae156aa425bed0cb9 Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Tue, 10 Sep 2024 14:36:49 +0200 +Subject: [PATCH] lib/user_busy.c: Include + +Since: +- utmpx APIs are used in non-Linux code blocks +- is already unconditionally included in Linux parts in other + files +then unconditionally include it in this file as well. + +Signed-off-by: Pino Toscano +--- + lib/user_busy.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/lib/user_busy.c ++++ b/lib/user_busy.c +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + #include "defines.h" + #include "prototypes.h" + #ifdef ENABLE_SUBIDS