* vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other

words backtrace() is libexecinfo) and it is optimized.
  This temporary hack should be also applied to other libexecinfo
  environments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-11-30 08:06:22 +00:00
Родитель 4bded50f0d
Коммит a926288bee
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Tue Nov 30 16:29:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
* vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other
words backtrace() is libexecinfo) and it is optimized.
This temporary hack should be also applied to other libexecinfo
environments.
Tue Nov 30 16:23:23 2010 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb: improve rdoc.

Просмотреть файл

@ -585,6 +585,9 @@ bugreport_backtrace(void *arg, VALUE file, int line, VALUE method)
return 0;
}
#if defined(__FreeBSD__) && defined(__OPTIMIZE__)
#undef HAVE_BACKTRACE
#endif
#if HAVE_BACKTRACE
# include <execinfo.h>
#elif defined(_WIN32)