aports/community/autofs/basename.patch
John Vogel 50b01374f6 community/autofs: fix build
Add libgen.h header include for basename(3) calls.
2024-09-05 10:48:28 +00:00

35 lines
1.0 KiB
Diff

diff -Naur a/daemon/automount.c b/daemon/automount.c
--- a/daemon/automount.c 2024-09-03 06:37:51.526857521 -0400
+++ b/daemon/automount.c 2024-09-03 06:39:19.908662819 -0400
@@ -33,7 +33,7 @@
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/poll.h>
-#include <dirent.h>
+#include <libgen.h>
#include <sys/vfs.h>
#include <sys/utsname.h>
#ifdef WITH_SYSTEMD
diff -Naur a/daemon/master.c b/daemon/master.c
--- a/daemon/master.c 2024-09-03 06:37:51.526857521 -0400
+++ b/daemon/master.c 2024-09-03 06:39:43.965820873 -0400
@@ -25,6 +25,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
+#include <libgen.h>
#include "automount.h"
/* The root of the map entry tree */
diff -Naur a/modules/lookup_file.c b/modules/lookup_file.c
--- a/modules/lookup_file.c 2024-09-03 06:37:51.540191127 -0400
+++ b/modules/lookup_file.c 2024-09-03 06:40:24.059961561 -0400
@@ -20,6 +20,7 @@
#include <time.h>
#include <ctype.h>
#include <signal.h>
+#include <libgen.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>