Ticket #33202: darwin9.patch

File darwin9.patch, 1.2 KB (added by neverpanic (Clemens Lang), 13 years ago)

Can you try with the attached patch against the Portfile and the files directory?

  • files/darwin9-helper_subprocess-FortunateSonServerImpl.cpp.patch

     
     1--- helper_subprocess/FortunateSonServerImpl.cpp.orig   2012-02-10 00:38:41.000000000 +0100
     2+++ helper_subprocess/FortunateSonServerImpl.cpp        2012-02-10 00:39:51.000000000 +0100
     3@@ -25,6 +25,10 @@
     4 
     5 #define MAX_FD_VALUE 1024
     6 
     7+#ifndef mach_vm_round_page
     8+#define mach_vm_round_page(x) (((mach_vm_offset_t)(x) + PAGE_MASK) & ~((signed)PAGE_MASK))
     9+#endif
     10+
     11 static char sOpenFiles[MAX_FD_VALUE / CHAR_BIT];
     12 
     13 static unsigned get_bit_value(int index) {
  • Portfile

     
    3535                framework-sources-HFByteArrayEditScript.m.patch
    3636}
    3737
     38# Leopard doesn't know about mach_vm_round_page
     39platform darwin 9 {
     40    patchfiles-append \
     41                darwin9-helper_subprocess-FortunateSonServerImpl.cpp.patch
     42}
     43
    3844xcode.target        HexFiend_2
    3945xcode.configuration Release
    4046