Skip to content

Instantly share code, notes, and snippets.

@seanlynch
Created January 28, 2010 06:21
Show Gist options
  • Save seanlynch/288492 to your computer and use it in GitHub Desktop.
Save seanlynch/288492 to your computer and use it in GitHub Desktop.
From 83ba06ae2efe5a23d4b7736b5ade4a76e8746a89 Mon Sep 17 00:00:00 2001
From: Sean Lynch <seanl@literati.org>
Date: Wed, 27 Jan 2010 22:15:32 -0800
Subject: [PATCH] Make it compile on Snow Leopard
---
jit/jit-apply-x86-64.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/jit/jit-apply-x86-64.h b/jit/jit-apply-x86-64.h
index 3c39154..8f9b9fb 100644
--- a/jit/jit-apply-x86-64.h
+++ b/jit/jit-apply-x86-64.h
@@ -136,8 +136,12 @@ _jit_classify_struct(jit_param_passing_t *passing,
#if defined(__GNUC__)
-#ifndef JIT_MEMCPY
-#define JIT_MEMCPY "jit_memcpy@PLT"
+#ifndef JIT_MEMCPY
+# if defined(__APPLE__) && defined(__MACH__)
+# define JIT_MEMCPY "_memcpy"
+# else
+# define JIT_MEMCPY "jit_memcpy@PLT"
+# endif
#endif
/*
--
1.6.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment