diff --git a/posixunix.scm b/posixunix.scm
index 6b5ffc9..c90481a 100644
|
a
|
b
|
static C_TLS sigset_t C_sigset;
|
| 308 | 308 | |
| 309 | 309 | #define C_ctime(n) (C_secs = (n), ctime(&C_secs)) |
| 310 | 310 | |
| 311 | | #if defined(__SVR4) |
| | 311 | #if defined(__SVR4) || defined(C_MACOSX) |
| 312 | 312 | /* Seen here: http://lists.samba.org/archive/samba-technical/2002-November/025571.html */ |
| 313 | 313 | |
| 314 | | static time_t timegm(struct tm *t) |
| | 314 | static time_t C_timegm(struct tm *t) |
| 315 | 315 | { |
| 316 | 316 | time_t tl, tb; |
| 317 | 317 | struct tm *tg; |
| … |
… |
static time_t timegm(struct tm *t)
|
| 338 | 338 | } |
| 339 | 339 | return (tl - (tb - tl)); |
| 340 | 340 | } |
| | 341 | #else |
| | 342 | #define C_timegm timegm |
| 341 | 343 | #endif |
| 342 | 344 | |
| 343 | 345 | #define cpy_tmvec_to_tmstc08(ptm, v) \ |
| … |
… |
C_tm_get( C_word v )
|
| 413 | 415 | |
| 414 | 416 | #define C_asctime(v) (asctime(C_tm_set(v))) |
| 415 | 417 | #define C_a_mktime(ptr, c, v) C_flonum(ptr, mktime(C_tm_set(v))) |
| 416 | | #define C_a_timegm(ptr, c, v) C_flonum(ptr, timegm(C_tm_set(v))) |
| | 418 | #define C_a_timegm(ptr, c, v) C_flonum(ptr, C_timegm(C_tm_set(v))) |
| 417 | 419 | |
| 418 | 420 | #define TIME_STRING_MAXLENGTH 255 |
| 419 | 421 | static char C_time_string [TIME_STRING_MAXLENGTH + 1]; |