$NetBSD: patch-ad,v 1.1 2008/11/20 21:30:05 chuck Exp $

--- sim_defs.h.orig	2008-11-20 15:36:35.000000000 -0500
+++ sim_defs.h	2008-11-20 15:40:40.000000000 -0500
@@ -164,7 +164,20 @@
 /* Inlining */
 
 #if defined (__GNUC__)                                  /* GCC */
+
+#if defined(__APPLE_CC__) && (__APPLE_CC__ > 5400) && \
+	(__APPLE_CC__ < 5488) && (__STDC_VERSION__ >= 199901L) && \
+	!defined(__GNUC_STDC_INLINE__)
+/* old versions of xcode (3.0) don't define this, and they should... */
+#define __GNUC_STDC_INLINE__
+#endif
+
+#ifdef __GNUC_STDC_INLINE__
+#define SIM_INLINE extern inline
+#else
 #define SIM_INLINE inline
+#endif
+
 #elif defined (_MSC_VER)                                /* Microsoft C Compilers */
 #define SIM_INLINE __inline
 #else                                                   /* default */
