From 4224476df6643dd50982a393534f1c3f22d8a1c0 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Mon, 28 Dec 2020 20:00:37 +0100 Subject: kmod: fix kmod tools crash on darwin include the proper header for basename(), otherwise the returned pointer is truncated to 32 bit because an int return type is assumed --- pkgs/os-specific/linux/kmod/darwin.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pkgs/os-specific') diff --git a/pkgs/os-specific/linux/kmod/darwin.patch b/pkgs/os-specific/linux/kmod/darwin.patch index 69dbf479f9f..e112e691525 100644 --- a/pkgs/os-specific/linux/kmod/darwin.patch +++ b/pkgs/os-specific/linux/kmod/darwin.patch @@ -121,3 +121,15 @@ index fd2028d..ecb0141 100644 if (!cwd) return NULL; +--- a/shared/util.h 2018-01-31 18:10:59.000000000 +0100 ++++ b/shared/util.h 2020-12-28 19:48:21.000000000 +0100 +@@ -7,6 +7,9 @@ + #include + #include + #include ++#ifdef __APPLE__ ++#include ++#endif + + #include + -- cgit 1.4.1