Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 077d92c

Browse files
committed
Fix use of undefined pointer types in definitions
1 parent aad863d commit 077d92c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libftl/gettimeofday/gettimeofday.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#define SEC_TO_NSEC(x) (((uint64_t)x) * NSEC_IN_SEC)
4545

4646
#ifdef _WIN32
47-
#include <Windows.h>
4847

4948
/* FILETIME of Jan 1 1970 00:00:00. */
5049
static const unsigned __int64 epoch = ((unsigned __int64)116444736000000000ULL);

libftl/gettimeofday/gettimeofday.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
#ifndef _WIN32
77
#include <sys/time.h>
8+
#else
9+
#include <WinSock2.h>
10+
11+
struct timezone;
812
#endif
913

1014
#ifdef _WIN32

0 commit comments

Comments
 (0)