summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/error.c b/error.c
index 73d0026314..7e9e4a91ba 100644
--- a/error.c
+++ b/error.c
@@ -469,7 +469,9 @@ static VALUE *syserr_list;
#endif
#if !defined(NT) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(sys_nerr)
+# if !defined(__APPLE__) || (__APPLE_CC__ < 1151)
extern int sys_nerr;
+# endif
#endif
static VALUE