Changeset 2886 in kBuild for trunk/src/lib/kDep.c
- Timestamp:
- Sep 6, 2016 2:31:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/kDep.c
r2851 r2886 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #ifdef KMK /* For when it gets compiled and linked into kmk. */ 36 # include "make.h" 37 #endif 35 38 #include <stdio.h> 36 39 #include <stdlib.h> … … 46 49 # include <io.h> 47 50 # include <Windows.h> 48 extern void nt_fullpath(const char *pszPath, char *pszFull, size_t cchFull); /* nt_fullpath.c */ 51 # include "nt_fullpath.h" 52 # include "nt/ntstat.h" 49 53 #else 50 54 # include <dirent.h> … … 195 199 #endif 196 200 char *pszFilename; 201 #ifndef KMK 197 202 struct stat s; 203 #endif 198 204 199 205 /* … … 220 226 { 221 227 #if K_OS == K_OS_WINDOWS 222 nt_fullpath (pszFilename, szFilename, sizeof(szFilename));228 nt_fullpath_cached(pszFilename, szFilename, sizeof(szFilename)); 223 229 fixslash(szFilename); 224 230 #else … … 233 239 * Check that the file exists before we start depending on it. 234 240 */ 235 if (stat(pszFilename, &s)) 241 #ifdef KMK 242 if (!file_exists_p(pszFilename)) 243 #elif K_OS == K_OS_WINDOWS 244 if (birdStatModTimeOnly(pszFilename, &s.st_mtim, 1 /*fFollowLink*/) != 0) 245 #else 246 if (stat(pszFilename, &s) != 0) 247 #endif 236 248 { 237 249 if ( !fQuiet
Note:
See TracChangeset
for help on using the changeset viewer.