mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dln.c: newer BeOS support. a patch from Pete Goodeve
<pete.goodeve at computer.org> in [ruby-core:18712]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9de8ab8b98
commit
98183a08c7
11 changed files with 24 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 19 09:29:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* dln.c: newer BeOS support. a patch from Pete Goodeve
|
||||
<pete.goodeve at computer.org> in [ruby-core:18712].
|
||||
|
||||
Thu Sep 18 20:37:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/optparse.rb (OptionParser::ParseError#set_backtrace): omits
|
||||
|
|
|
@ -1261,10 +1261,12 @@ if test "$with_dln_a_out" != yes; then
|
|||
powerpc*)
|
||||
: ${LDSHARED="ld -xms"}
|
||||
DLDFLAGS="$DLDFLAGS "'-export Init_$(TARGET) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
|
||||
;;
|
||||
LDFLAGS="$LDFLAGS -L/boot/home/config/lib -lbe -lroot"
|
||||
;;
|
||||
i586*)
|
||||
: ${LDSHARED="ld -shared"}
|
||||
DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -lbe -lroot"
|
||||
DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib \$(topdir)/_APP_ -lbe -lroot"
|
||||
LDFLAGS="$LDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib -lbe -lroot"
|
||||
;;
|
||||
esac
|
||||
: ${LIBPATHENV=LIBRARY_PATH}
|
||||
|
@ -1630,6 +1632,7 @@ case "$target_os" in
|
|||
CFLAGS="$CFLAGS -relax_pointers"
|
||||
;;
|
||||
esac
|
||||
CPPFLAGS="$CPPFLAGS -I/boot/home/config/include"
|
||||
;;
|
||||
cygwin*|mingw*)
|
||||
case "$target_os" in
|
||||
|
|
|
@ -195,7 +195,7 @@ void xfree _((void*));
|
|||
#include "vms.h"
|
||||
#endif
|
||||
|
||||
#if defined(__BEOS__)
|
||||
#if defined(__BEOS__) && !defined(BONE)
|
||||
#include <net/socket.h> /* intern.h needs fd_set definition */
|
||||
#endif
|
||||
|
||||
|
|
3
dln.c
3
dln.c
|
@ -1499,7 +1499,8 @@ dln_load(file)
|
|||
/* load extention module */
|
||||
img_id = load_add_on(file);
|
||||
if (img_id <= 0) {
|
||||
rb_loaderror("Failed to load %.200s", file);
|
||||
rb_loaderror("Failed to load add_on %.200s error_code=%x",
|
||||
file, img_id);
|
||||
}
|
||||
|
||||
/* find symbol for module initialize function. */
|
||||
|
|
2
eval.c
2
eval.c
|
@ -74,7 +74,7 @@ char *strrchr _((const char*,const char));
|
|||
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __BEOS__
|
||||
#if defined(__BEOS__) && !defined(BONE)
|
||||
#include <net/socket.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ if have_header("arpa/inet.h")
|
|||
end
|
||||
|
||||
ipv6 = false
|
||||
default_ipv6 = /cygwin/ !~ RUBY_PLATFORM
|
||||
default_ipv6 = /cygwin|beos/ !~ RUBY_PLATFORM
|
||||
if enable_config("ipv6", default_ipv6)
|
||||
if checking_for("ipv6") {try_link(<<EOF)}
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
#include <sys/types.h>
|
||||
#if !defined(_WIN32) && !defined(__VMS)
|
||||
#include <sys/param.h>
|
||||
#if defined(__BEOS__)
|
||||
#if defined(__BEOS__) && !defined(BONE)
|
||||
# include <net/socket.h>
|
||||
#else
|
||||
# include <sys/socket.h>
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef _WIN32
|
||||
#if defined(__BEOS__)
|
||||
#if defined(__BEOS__) && !defined(BONE)
|
||||
# include <net/socket.h>
|
||||
#else
|
||||
# include <sys/socket.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#if defined(__BEOS__)
|
||||
#if defined(__BEOS__) && !defined(BONE)
|
||||
# include <net/socket.h>
|
||||
#else
|
||||
# include <sys/socket.h>
|
||||
|
|
4
io.c
4
io.c
|
@ -91,7 +91,9 @@ extern void Init_File _((void));
|
|||
# ifndef NOFILE
|
||||
# define NOFILE (OPEN_MAX)
|
||||
# endif
|
||||
#include <net/socket.h>
|
||||
#if !defined(BONE)
|
||||
# include <net/socket.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "util.h"
|
||||
|
|
|
@ -80,6 +80,9 @@ round(x)
|
|||
}
|
||||
return x;
|
||||
}
|
||||
#elif defined(__BEOS__)
|
||||
/* appears to be a bug in the BeOS headers */
|
||||
double round(double x);
|
||||
#endif
|
||||
|
||||
static ID id_coerce, id_to_i, id_eq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue