diff --git a/core/Error.cc b/core/Error.cc
index 72f6a2370c284fd6b6ae82909a1f8532e3cb6419..86d3035a0f8031ddfcbd3d7ce52f959f2223f253 100644
--- a/core/Error.cc
+++ b/core/Error.cc
@@ -173,6 +173,13 @@ static void __attribute((constructor)) init(void) {
 #define SKIP_FRAMES 1
 #endif
 
+// TODO: Values for __x86_64 are only guesses, not tested.
+#if defined(__x86_64) 
+#define FLUSHWIN()
+#define FRAME_PTR_INDEX 7
+#define SKIP_FRAMES 1
+#endif
+
 #if defined(ppc) || defined(__ppc)
 #define FLUSHWIN()
 #define FRAME_PTR_INDEX 0