util-linux: add missing include for errno.h (#48433)
This commit is contained in:
parent
d16a578242
commit
418a9194e7
@ -0,0 +1,11 @@
|
||||
diff -ruN spack-src/misc-utils/lsfd.c spack-src-patched/misc-utils/lsfd.c
|
||||
--- spack-src/misc-utils/lsfd.c 2024-07-04 07:54:41.236242042 +0000
|
||||
+++ spack-src-patched/misc-utils/lsfd.c 2025-01-07 01:30:52.719740516 +0000
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <sys/uio.h>
|
||||
#include <linux/sched.h>
|
||||
#include <sys/syscall.h>
|
||||
+#include <errno.h>
|
||||
|
||||
#ifdef HAVE_LINUX_KCMP_H
|
||||
# include <linux/kcmp.h>
|
@ -50,6 +50,8 @@ class UtilLinux(AutotoolsPackage):
|
||||
|
||||
depends_on("bash", when="+bash", type="run")
|
||||
|
||||
patch("missing-errno-header.patch", when="@2.40.2")
|
||||
|
||||
def url_for_version(self, version):
|
||||
url = "https://www.kernel.org/pub/linux/utils/util-linux/v{0}/util-linux-{1}.tar.gz"
|
||||
return url.format(version.up_to(2), version)
|
||||
|
Loading…
Reference in New Issue
Block a user