Changeset 3248 for trunk/src/kmk/kmkbuiltin/touch.c
- Timestamp:
- Dec 26, 2018, 5:05:33 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/touch.c
r3192 r3248 69 69 /** Checks an alleged digit. */ 70 70 #define IS_DIGIT(chDigit, uMax) ( ((unsigned)(chDigit) - (unsigned)'0') <= (unsigned)(uMax) ) 71 72 /* Missing config.h bits for high res timestamp. */ 73 #if FILE_TIMESTAMP_HI_RES 74 # ifndef ST_ATIM_NSEC 75 # define ST_ATIM_NSEC st_atim.tv_nsec 76 # endif 77 # ifndef ST_MTIM_NSEC 78 # define ST_MTIM_NSEC st_mtim.tv_nsec 79 # endif 80 #endif 71 81 72 82 … … 694 704 pThis->NewMTime.tv_sec = St.st_mtime; 695 705 #if FILE_TIMESTAMP_HI_RES 696 pThis->NewATime.tv_usec = St. st_atim.tv_nsec/ 1000;697 pThis->NewMTime.tv_usec = St. st_mtim.tv_nsec/ 1000;706 pThis->NewATime.tv_usec = St.ST_ATIM_NSEC / 1000; 707 pThis->NewMTime.tv_usec = St.ST_MTIM_NSEC / 1000; 698 708 #else 699 709 pThis->NewATime.tv_usec = 0; … … 840 850 aTimes[1].tv_sec = St.st_mtime; 841 851 #if FILE_TIMESTAMP_HI_RES 842 aTimes[0].tv_usec = St. st_atim.tv_nsec/ 1000;843 aTimes[1].tv_usec = St. st_mtim.tv_nsec/ 1000;852 aTimes[0].tv_usec = St.ST_ATIM_NSEC / 1000; 853 aTimes[1].tv_usec = St.ST_MTIM_NSEC / 1000; 844 854 #else 845 855 aTimes[0].tv_usec = 0;
Note:
See TracChangeset
for help on using the changeset viewer.