pdisk: Fix build

OPNA2608 173ec7d6 eeb00de3

+16
+13
pkgs/by-name/pd/pdisk/cmdline.patch
···
··· 1 + --- a/cmdline.c 2021-10-05 22:29:41.000000000 -0700 2 + +++ a/cmdline.c 2024-05-30 12:05:29.146787602 -0700 3 + @@ -22,10 +22,8 @@ 4 + * @APPLE_LICENSE_HEADER_END@ 5 + */ 6 + #include <stdio.h> 7 + -#ifndef __linux__ 8 + #include <stdlib.h> 9 + #include <unistd.h> 10 + -#endif 11 + #include <string.h> 12 + #include <errno.h> 13 + #include <fcntl.h>
+3
pkgs/by-name/pd/pdisk/package.nix
··· 39 url = "https://aur.archlinux.org/cgit/aur.git/plain/linux_strerror.patch?h=pdisk&id=d0c930ea8bcac008bbd0ade1811133a625caea54"; 40 sha256 = "sha256-HGJIS+vTn6456KtaETutIgTPPBm2C9OHf1anG8yaJPo="; 41 }) 42 ]; 43 44 postPatch =
··· 39 url = "https://aur.archlinux.org/cgit/aur.git/plain/linux_strerror.patch?h=pdisk&id=d0c930ea8bcac008bbd0ade1811133a625caea54"; 40 sha256 = "sha256-HGJIS+vTn6456KtaETutIgTPPBm2C9OHf1anG8yaJPo="; 41 }) 42 + 43 + # Fix missing includes on Linux 44 + ./cmdline.patch 45 ]; 46 47 postPatch =