mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-21 08:23:24 -05:00
msvc: do not re-declare the timespec struct
VS2015's headers already declare that struct. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
48deb00ef2
commit
31f939d545
@@ -360,11 +360,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;
|
||||
|
||||
Reference in New Issue
Block a user