forked from NixOS/nixpkgs
ugarit: fix build (#409693)
This commit is contained in:
commit
b10ab2bb8b
2 changed files with 15 additions and 0 deletions
|
@ -192,6 +192,11 @@ rec {
|
|||
buildInputs = [
|
||||
|
||||
];
|
||||
|
||||
patches = [
|
||||
# missing include <sys/sysmacros.h> since Jan 2025, cause unknown
|
||||
./posix-extras-add-sysmacros-include.patch
|
||||
];
|
||||
};
|
||||
|
||||
record-variants = eggDerivation {
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
--- a/posix-extras.scm 1970-01-01 01:00:01.000000000 +0100
|
||||
+++ b/posix-extras.scm 1970-01-01 01:00:01.000000000 +0100
|
||||
@@ -110,6 +110,7 @@ static void *C_not_implemented_ptr(void)
|
||||
#endif
|
||||
|
||||
#if defined (__unix__) || defined (C_XXXBSD)
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#define C_mknod(fn, m, d) C_fix(mknod(C_data_pointer(fn), C_unfix(m), C_unfix(d)))
|
||||
#define C_mknod64(fn, m, maj, min) C_fix(mknod(C_data_pointer(fn), C_unfix(m), makedev(C_num_to_int(maj), C_num_to_int(min))))
|
Loading…
Add table
Add a link
Reference in a new issue