From 62e648e148b3cb9f96dcce808c55c02b7ccb4486 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 20 Jan 1999 04:59:39 +0000 Subject: ruby 1.3 cycle git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/RUBY@372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/x68.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'missing/x68.c') diff --git a/missing/x68.c b/missing/x68.c index 8fd9c3e879..dbfe662874 100644 --- a/missing/x68.c +++ b/missing/x68.c @@ -10,3 +10,27 @@ #include "x68/_round.c" #include "x68/fconvert.c" #endif + +/* missing some basic syscalls */ +int +link(const char *src, const char *dst) +{ + return symlink(src, dst); +} + +#include +#include + +struct timezone { + int tz_minueswest; + int tz_dsttime; +}; + +int +gettimeofday(struct timeval *tv, struct timezone *tz) +{ + tv->tv_sec = (long)time((time_t*)0); + tv->tv_usec = 0; + + return 0; +} -- cgit v1.2.3