|
|
@ -33,6 +33,7 @@ typedef struct timeval { |
|
|
*/ |
|
|
*/ |
|
|
int gettimeofday(struct timeval * tp, void * unused) |
|
|
int gettimeofday(struct timeval * tp, void * unused) |
|
|
{ |
|
|
{ |
|
|
|
|
|
NG_IGNORE(unused); |
|
|
// Note: some broken versions only have 8 trailing zero's, the correct epoch has 9 trailing zero's |
|
|
// Note: some broken versions only have 8 trailing zero's, the correct epoch has 9 trailing zero's |
|
|
// This magic number is the number of 100 nanosecond intervals since January 1, 1601 (UTC) |
|
|
// This magic number is the number of 100 nanosecond intervals since January 1, 1601 (UTC) |
|
|
// until 00:00:00 January 1, 1970 |
|
|
// until 00:00:00 January 1, 1970 |
|
|
|