]>
git.proxmox.com Git - libgit2.git/blob - src/util/win32/win32-compat.h
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_win32_win32_compat_h__
8 #define INCLUDE_win32_win32_compat_h__
14 #include <sys/types.h>
16 typedef long suseconds_t
;
28 #define timespec p_timespec
39 struct timespec st_atim
;
40 struct timespec st_mtim
;
41 struct timespec st_ctim
;
42 #define st_atime st_atim.tv_sec
43 #define st_mtime st_mtim.tv_sec
44 #define st_ctime st_ctim.tv_sec
45 #define st_atime_nsec st_atim.tv_nsec
46 #define st_mtime_nsec st_mtim.tv_nsec
47 #define st_ctime_nsec st_ctim.tv_nsec