File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ stdenv.mkDerivation (finalAttrs: {
3939 url = "https://aur.archlinux.org/cgit/aur.git/plain/linux_strerror.patch?h=pdisk&id=d0c930ea8bcac008bbd0ade1811133a625caea54" ;
4040 sha256 = "sha256-HGJIS+vTn6456KtaETutIgTPPBm2C9OHf1anG8yaJPo=" ;
4141 } )
42+
43+ # Fix missing includes on Linux
44+ ./cmdline.patch
4245 ] ;
4346
4447 postPatch =
You can’t perform that action at this time.
0 commit comments