Skip to content

Commit 173ec7d

Browse files
committed
pdisk: Fix build
1 parent eeb00de commit 173ec7d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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>

pkgs/by-name/pd/pdisk/package.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 =

0 commit comments

Comments
 (0)