From 9f1e0829daa572708a0aeb3dddbd33d13cb15693 Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 3 Sep 2001 05:18:02 +0000 Subject: [PATCH] * error.c: unbreak the build on *BSD with gcc 3.0.1 by removing the conflicting declaration of sys_nerr for *BSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ error.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ad58e72772..62dc42e682 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 3 14:17:17 2001 Akinori MUSHA + + * error.c: unbreak the build on *BSD with gcc 3.0.1 by removing + the conflicting declaration of sys_nerr for *BSD. + Sat Sep 1 09:50:54 2001 Nobuyoshi Nakada * ruby.c (set_arg0): prevent SEGV when val is longer than the diff --git a/error.c b/error.c index 6a008cdac5..a86fb6baea 100644 --- a/error.c +++ b/error.c @@ -468,7 +468,7 @@ static const syserr_index_entry syserr_index[]= { static VALUE *syserr_list; #endif -#if !defined NT && !defined sys_nerr +#if !defined(NT) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(sys_nerr) extern int sys_nerr; #endif