Created
January 28, 2010 06:21
-
-
Save seanlynch/288492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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