Ticket #33202: darwin9.2.patch

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

revised patch for darwin9

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

     
     1--- helper_subprocess/FortunateSonServerImpl.cpp.orig   2012-02-10 21:24:27.000000000 +0100
     2+++ helper_subprocess/FortunateSonServerImpl.cpp        2012-02-10 21:25:33.000000000 +0100
     3@@ -25,6 +25,13 @@
     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+#ifndef mach_vm_trunc_page
     11+#define mach_vm_trunc_page(x) ((mach_vm_offset_t)(x) & ~((signed)PAGE_MASK))
     12+#endif
     13+
     14 static char sOpenFiles[MAX_FD_VALUE / CHAR_BIT];
     15 
     16 static unsigned get_bit_value(int index) {
  • Portfile

     
    3838                framework-sources-HFByteArrayEditScript.m.patch
    3939}
    4040
     41# Leopard doesn't know about mach_vm_round_page, mach_vm_trunc_page, and can't handle -fblocks
     42platform darwin 9 {
     43    patchfiles-append \
     44                darwin9-helper_subprocess-FortunateSonServerImpl.cpp.patch
     45    pre-configure {
     46        reinplace s/-fblocks//g ${worksrcpath}/HexFiend_2.xcodeproj/project.pbxproj
     47    }
     48}
     49
    4150xcode.target        HexFiend_2
    4251xcode.configuration Release
    4352