1
0
Fork 0
forked from NixOS/nixpkgs

ugarit: fix build (#409693)

This commit is contained in:
Aleksana 2025-05-22 19:43:32 +08:00 committed by GitHub
commit b10ab2bb8b
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -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 {

View file

@ -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))))