pdisk: Fix build
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
--- a/cmdline.c 2021-10-05 22:29:41.000000000 -0700
|
||||
+++ a/cmdline.c 2024-05-30 12:05:29.146787602 -0700
|
||||
@@ -22,10 +22,8 @@
|
||||
* @APPLE_LICENSE_HEADER_END@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
-#ifndef __linux__
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
-#endif
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
@@ -39,6 +39,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
url = "https://aur.archlinux.org/cgit/aur.git/plain/linux_strerror.patch?h=pdisk&id=d0c930ea8bcac008bbd0ade1811133a625caea54";
|
||||
sha256 = "sha256-HGJIS+vTn6456KtaETutIgTPPBm2C9OHf1anG8yaJPo=";
|
||||
})
|
||||
|
||||
# Fix missing includes on Linux
|
||||
./cmdline.patch
|
||||
];
|
||||
|
||||
postPatch =
|
||||
|
||||
Reference in New Issue
Block a user