File insserv-fix-build-errors.patch of Package insserv
diff -u insserv/insserv.c insserv-new/insserv.c --- insserv/insserv.c 2024-12-21 14:25:33.000000000 -0500 +++ insserv-new/insserv.c 2025-10-28 23:03:39.086383256 -0400 @@ -42,6 +42,7 @@ #include <pwd.h> #include <string.h> +#include <libgen.h> #include <unistd.h> #include <ctype.h> #include <stdio.h> diff -u insserv/listing.c insserv-new/listing.c --- insserv/listing.c 2024-12-21 14:25:33.000000000 -0500 +++ insserv-new/listing.c 2025-10-28 23:05:15.419386339 -0400 @@ -22,6 +22,7 @@ */ #include <string.h> +#include <libgen.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> diff -u insserv/listing.h insserv-new/listing.h --- insserv/listing.h 2024-12-21 14:25:33.000000000 -0500 +++ insserv-new/listing.h 2025-10-28 23:07:06.362389889 -0400 @@ -20,6 +20,7 @@ * */ +#include <libgen.h> #include <stddef.h> #include <sys/types.h> #include "config.h" diff -u insserv/map.c insserv-new/map.c --- insserv/map.c 2024-12-21 14:25:33.000000000 -0500 +++ insserv-new/map.c 2025-10-28 23:07:14.509390149 -0400 @@ -1,5 +1,6 @@ #include <stdio.h> #include <string.h> +#include <libgen.h> #include <ctype.h> #include <errno.h> diff -u insserv/systemd.c insserv-new/systemd.c --- insserv/systemd.c 2024-12-21 14:25:33.000000000 -0500 +++ insserv-new/systemd.c 2025-10-28 23:07:23.912390450 -0400 @@ -24,6 +24,7 @@ #include <malloc.h> #include <stdlib.h> #include <string.h> +#include <libgen.h> #include <sys/param.h> #include <sys/types.h> #include <sys/socket.h> diff -u insserv/systemd.h insserv-new/systemd.h --- insserv/systemd.h 2024-12-21 14:25:33.000000000 -0500 +++ insserv-new/systemd.h 2025-10-28 23:07:30.647390666 -0400 @@ -20,6 +20,7 @@ * */ +#include <libgen.h> #include <dbus/dbus.h> extern int systemd_get_tree(DBusConnection *bus); extern DBusConnection * systemd_open_conn(void); Common subdirectories: insserv/tests and insserv-new/tests