| Index: compat/win/time.cc
|
| diff --git a/compat/win/sys/time.h b/compat/win/time.cc
|
| similarity index 74%
|
| copy from compat/win/sys/time.h
|
| copy to compat/win/time.cc
|
| index 46bdef2a3810669fcf310d9d8a29a29980c3c894..dd9f6a8d496e96448fd631f205343e314bdbc228 100644
|
| --- a/compat/win/sys/time.h
|
| +++ b/compat/win/time.cc
|
| @@ -12,12 +12,13 @@
|
| // See the License for the specific language governing permissions and
|
| // limitations under the License.
|
|
|
| -#ifndef CRASHPAD_COMPAT_WIN_SYS_TIME_H_
|
| -#define CRASHPAD_COMPAT_WIN_SYS_TIME_H_
|
| +#include <time.h>
|
|
|
| -struct timeval {
|
| - long tv_sec;
|
| - long tv_usec;
|
| -};
|
| +const char* strptime(const char* buf, const char* format, struct tm* tm) {
|
| + // TODO(scottmg): strptime implementation.
|
| + return nullptr;
|
| +}
|
|
|
| -#endif // CRASHPAD_COMPAT_WIN_SYS_TIME_H_
|
| +time_t timegm(struct tm* tm) {
|
| + return _mkgmtime(tm);
|
| +}
|
|
|