<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,10 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#ifdef __APPLE__
+#include &lt;AvailabilityMacros.h&gt;
+#endif
+
 /* test for malloc_size() */
 #ifdef __APPLE__
 #include &lt;malloc/malloc.h&gt;
@@ -9,7 +13,7 @@
 #endif
 
 /* define redis_fstat to fstat or fstat64() */
-#ifdef __APPLE__
+#if defined(__APPLE__) &amp;&amp; !defined(MAC_OS_X_VERSION_10_6)
 #define redis_fstat fstat64
 #define redis_stat stat64
 #else</diff>
      <filename>config.h</filename>
    </modified>
    <modified>
      <diff>@@ -4305,8 +4305,10 @@ static void *getMcontextEip(ucontext_t *uc) {
     return (void*) uc-&gt;uc_mcontext.mc_eip;
 #elif defined(__dietlibc__)
     return (void*) uc-&gt;uc_mcontext.eip;
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) &amp;&amp; !defined(MAC_OS_X_VERSION_10_6)
     return (void*) uc-&gt;uc_mcontext-&gt;__ss.__eip;
+#elif defined(__APPLE__) &amp;&amp; defined(MAC_OS_X_VERSION_10_6)
+    return (void*) uc-&gt;uc_mcontext-&gt;__ss.__rip;
 #elif defined(__i386__) || defined(__X86_64__) /* Linux x86 */
     return (void*) uc-&gt;uc_mcontext.gregs[REG_EIP];
 #elif defined(__ia64__) /* Linux IA64 */</diff>
      <filename>redis.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fbf9bcdb6f87d4c9c50d050803c39a139eec35fb</id>
    </parent>
  </parents>
  <author>
    <name>antirez</name>
    <email>antirez@gmail.com</email>
  </author>
  <url>http://github.com/antirez/redis/commit/06db1f50cd754995130ece657a39d534b82d14ae</url>
  <id>06db1f50cd754995130ece657a39d534b82d14ae</id>
  <committed-date>2009-07-24T05:32:58-07:00</committed-date>
  <authored-date>2009-07-24T05:32:58-07:00</authored-date>
  <message>fixed compilation with Snow Leopard, thanks to Lon Baker for providing SSH access to Snow Leopard box</message>
  <tree>5c2af40f246def2ba108a4cfc2d9e26d7f48796b</tree>
  <committer>
    <name>antirez</name>
    <email>antirez@gmail.com</email>
  </committer>
</commit>
