]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Un-break the build on OSX < 10.8 following r12814
authorJulian Seward <jseward@acm.org>
Thu, 2 Aug 2012 18:51:51 +0000 (18:51 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 2 Aug 2012 18:51:51 +0000 (18:51 +0000)
(which was initial OSX 10.8 support)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12815

coregrind/m_syswrap/syswrap-darwin.c
coregrind/m_ume/macho.c

index fb4cb5f764a93f5623fcb379fb70a9e950fa5a69..77e0bb1f9274183a589c03959426c33eeac5c9e6 100644 (file)
@@ -8395,7 +8395,7 @@ const SyscallTableEntry ML_(mach_trap_table)[] = {
 #  if DARWIN_VERS == DARWIN_10_8
    MACXY(VG_DARWIN_SYSCALL_CONSTRUCT_MACH(10), mach__10), 
 #  else
-   _____(VG_DARWIN_SYSCALL_CONSTRUCT_MACH(10), 
+   _____(VG_DARWIN_SYSCALL_CONSTRUCT_MACH(10))
 #  endif
 
    _____(VG_DARWIN_SYSCALL_CONSTRUCT_MACH(11)), 
index 142a3f9821eb151a6519d2fdadb0db8c2fa23c3e..d6a662251e77e7d90bea4d0fc20604c6e4ac0640 100644 (file)
@@ -82,6 +82,7 @@ static void check_mmap(SysRes res, Addr base, SizeT len, HChar* who)
    }
 }
 
+#if DARWIN_VERS == DARWIN_10_8
 static void check_mmap_float(SysRes res, SizeT len, HChar* who)
 {
    if (sr_isError(res)) {
@@ -90,7 +91,7 @@ static void check_mmap_float(SysRes res, SizeT len, HChar* who)
       VG_(exit)(1);
    }
 }
-
+#endif
 
 static int 
 load_thin_file(int fd, vki_off_t offset, vki_off_t size, unsigned long filetype, 
@@ -385,6 +386,7 @@ load_unixthread(vki_uint8_t **out_stack_start, vki_uint8_t **out_stack_end,
    This is a really nasty hack -- allocates 64M+stack size, then
    deallocates the 64M, to guarantee that the stack is at least 64M
    above zero. */
+#if DARWIN_VERS == DARWIN_10_8
 static int
 handle_lcmain ( vki_uint8_t **out_stack_start,
                 vki_uint8_t **out_stack_end,
@@ -414,7 +416,7 @@ handle_lcmain ( vki_uint8_t **out_stack_start,
 
    return 0;
 }
-
+#endif /* DARWIN_VERS == DARWIN_10_8 */