1:
2:
3: #include "ruby/config.h"
4:
5: #if !HAVE_SELECT
6: #include "x68/select.c"
7: #endif
8: #if MISSING__DTOS18
9: #include "x68/_dtos18.c"
10: #endif
11: #if MISSING_FCONVERT
12: #include "x68/_round.c"
13: #include "x68/fconvert.c"
14: #endif
15:
16:
17: int
18: link(const char *src, const char *dst)
19: {
20: return symlink(src, dst);
21: }
22:
23: #ifndef HAVE_GETTIMEOFDAY
24: #include <time.h>
25: #include <sys/time.h>
26:
27: struct timezone {
28: int tz_minuteswest;
29: int tz_dsttime;
30: };
31:
32: int
33: gettimeofday(struct timeval *tv, struct timezone *tz)
34: {
35: tv->tv_sec = (long)time((time_t*)0);
36: tv->tv_usec = 0;
37:
38: return 0;
39: }
40: #endif