Skip to content

Commit

Permalink
msvc: do not re-declare the timespec struct
Browse files Browse the repository at this point in the history
VS2015's headers already declare that struct.

Signed-off-by: Jeff Hostetler <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
jeffhostetler authored and gitster committed Jun 20, 2019
1 parent 12fb9bd commit 172e54e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/mingw.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,13 @@ static inline int getrlimit(int resource, struct rlimit *rlp)
#ifndef __MINGW64_VERSION_MAJOR
#define off_t off64_t
#define lseek _lseeki64
#ifndef _MSC_VER
struct timespec {
time_t tv_sec;
long tv_nsec;
};
#endif
#endif

struct mingw_stat {
_dev_t st_dev;
Expand Down

0 comments on commit 172e54e

Please sign in to comment.