Unverified Commit b10ab2bb authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

ugarit: fix build (#409693)

parents 2be238e2 edc5b6b0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 {
+10 −0
Original line number Diff line number Diff line
--- 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))))