From 89cb2ae87236604b0e8ededd0fd7d9425c2d8cb6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 27 May 2024 14:21:29 +0200 Subject: [PATCH] sysfs: Include for basename() Otherwise, it fails to build with musl libc. --- lib/sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sysfs.c b/lib/sysfs.c index 0e763dc..439c4cb 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -2,7 +2,7 @@ * The PCI Library -- Configuration Access via /sys/bus/pci * * Copyright (c) 2003 Matthew Wilcox - * Copyright (c) 1997--2023 Martin Mares + * Copyright (c) 1997--2024 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL v2+. * @@ -19,6 +19,7 @@ #include #include #include +#include #include #include "internal.h" -- 2.39.2