Changeset 3060 in kBuild for trunk/src/kmk/kmkbuiltin/mscfakes.h
- Timestamp:
- Sep 21, 2017 3:11:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/mscfakes.h
r2766 r3060 28 28 #ifdef _MSC_VER 29 29 30 #define timeval windows_timeval 31 30 32 /* Include the config file (kmk's) so we don't need to duplicate stuff from it here. */ 31 33 #include "config.h" … … 50 52 # define lseek _lseeki64 51 53 #endif 54 55 #undef timeval 52 56 53 57 #undef PATH_MAX … … 104 108 #endif 105 109 106 #if !defined(timerisset) && defined(MSCFAKES_NO_WINDOWS_H)107 110 struct timeval 108 111 { 109 longtv_sec;112 __time64_t tv_sec; 110 113 long tv_usec; 111 114 }; 112 #endif113 115 114 116 struct iovec … … 134 136 #define chmod msc_chmod 135 137 #define lchown(path, uid, gid) chown(path, uid, gid) 136 #define lutimes(path, tvs) utimes(path, tvs)137 138 int link(const char *pszDst, const char *pszLink); 138 139 int mkdir_msc(const char *path, mode_t mode); … … 158 159 int symlink(const char *pszDst, const char *pszLink); 159 160 int utimes(const char *pszPath, const struct timeval *paTimes); 161 int lutimes(const char *pszPath, const struct timeval *paTimes); 160 162 ssize_t writev(int fd, const struct iovec *vector, int count); 163 164 int gettimeofday(struct timeval *pNow, void *pvIgnored); 165 struct tm *localtime_r(const __time64_t *pNow, struct tm *pResult); 166 __time64_t timegm(struct tm *pNow); 167 #undef mktime 168 #define mktime _mktime64 161 169 162 170 /* bird write ENOSPC hacks. */
Note:
See TracChangeset
for help on using the changeset viewer.