mdadm: fix segfault on musl

This commit is contained in:
defect1ve 2024-11-26 14:46:47 +01:00 committed by Leah Neukirchen
parent b6bc206123
commit ebad446ea9
2 changed files with 11 additions and 1 deletions

View File

@ -18,3 +18,13 @@
#include <signal.h> #include <signal.h>
#include <sys/signalfd.h> #include <sys/signalfd.h>
#include <sys/wait.h> #include <sys/wait.h>
--- mdadm-4.3/Monitor.c
+++ mdadm-4.3/Monitor.c
@@ -29,6 +29,7 @@
#include <sys/wait.h>
#include <limits.h>
#include <syslog.h>
+#include <libgen.h>
#define TASK_COMM_LEN 16
#define EVENT_NAME_MAX 32

View File

@ -1,7 +1,7 @@
# Template file for 'mdadm' # Template file for 'mdadm'
pkgname=mdadm pkgname=mdadm
version=4.3 version=4.3
revision=2 revision=3
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="eudev-libudev-devel" makedepends="eudev-libudev-devel"
short_desc="Tool for managing/monitoring Linux md device arrays" short_desc="Tool for managing/monitoring Linux md device arrays"