mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
ugarit: fix build
This commit is contained in:
@@ -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))))
|
||||
Reference in New Issue
Block a user