mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
Bits and pieces, mostly stubs, for the Mac port.
[originally from svn r5136]
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: macmisc.c,v 1.3 2003/03/29 23:07:55 ben Exp $ */
|
||||
/* $Id$ */
|
||||
/*
|
||||
* Copyright (c) 1999, 2003 Ben Harris
|
||||
* All rights reserved.
|
||||
@ -172,6 +172,33 @@ FILE *f_open(Filename fn, char const *mode)
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct tm ltime(void)
|
||||
{
|
||||
struct tm tm;
|
||||
DateTimeRec d;
|
||||
GetTime(&d);
|
||||
|
||||
tm.tm_sec=d.second;
|
||||
tm.tm_min=d.minute;
|
||||
tm.tm_hour=d.hour;
|
||||
tm.tm_mday=d.day;
|
||||
tm.tm_mon=d.month;
|
||||
tm.tm_year=d.year;
|
||||
tm.tm_wday=d.dayOfWeek;
|
||||
tm.tm_yday=1; /* GetTime doesn't tell us */
|
||||
tm.tm_isdst=0; /* Have to do DST ourselves */
|
||||
|
||||
/* XXX find out DST adjustment and add it */
|
||||
|
||||
return tm;
|
||||
}
|
||||
|
||||
const char platform_x11_best_transport[] = "localhost";
|
||||
|
||||
char *platform_get_x_display(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* c-file-style: "simon"
|
||||
|
Reference in New Issue
Block a user