diff --git a/meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-basics.h-Include-stdbool.h-for-bool.patch b/meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-basics.h-Include-stdbool.h-for-bool.patch
new file mode 100644
index 0000000000..f602289a49
--- /dev/null
+++ b/meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-basics.h-Include-stdbool.h-for-bool.patch
@@ -0,0 +1,29 @@
+From 59c00248b19eafc2e0632d0608c3d70c1488b8bf Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Tue, 1 Dec 2026 23:38:18 -0800
+Subject: [PATCH] basics.h: Include stdbool.h for bool
+
+isempty() returns bool, but basics.h does not include <stdbool.h>.
+That only builds where bool is a keyword (C23, e.g. GCC 15's default);
+with clang's default C17 it fails:
+
+  lib/basics.h:62:15: error: unknown type name 'bool'
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ lib/basics.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/basics.h b/lib/basics.h
+index bb803a6..e03a17f 100644
+--- a/lib/basics.h
++++ b/lib/basics.h
+@@ -3,6 +3,7 @@
+ #pragma once
+ 
+ #include <errno.h>
++#include <stdbool.h>
+ #include <unistd.h>
+ 
+ #define _unused_ __attribute__((unused))
diff --git a/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb b/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.80.0.bb
similarity index 75%
rename from meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb
rename to meta-oe/recipes-extended/wtmpdb/wtmpdb_0.80.0.bb
index 392ec0a452..7169b1eb95 100644
--- a/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb
+++ b/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.80.0.bb
@@ -5,19 +5,25 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c"
 SECTION = "libs"
 
-SRCREV = "89c0861f74e576c5ad0ec9f5302aa635a4e50dc6"
+SRCREV = "33fe03bad30243f588f588416e81acea9ca669db"
 
 SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https;tag=v${PV} \
            file://0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch \
+           file://0001-basics.h-Include-stdbool.h-for-bool.patch \
            "
 
+UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 
 inherit meson pkgconfig systemd features_check
 
 DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
 REQUIRED_DISTRO_FEATURES = "pam"
 
-SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG[systemd] = "-Dwtmpdbd=enabled -Dsystemd=enabled,-Dwtmpdbd=disabled -Dsystemd=disabled,systemd"
+
+SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service \
+    ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'wtmpdbd.socket', '', d)}"
 
 EXTRA_OEMESON = " -Dpamlibdir=${base_libdir}/security"
 
