Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/elftoolchain/libelftc/elftc_set_timestamps.c
Show All 31 Lines | |||||
ELFTC_VCSID("$Id$"); | ELFTC_VCSID("$Id$"); | ||||
/* | /* | ||||
* Determine the field name for the timestamp fields inside a 'struct | * Determine the field name for the timestamp fields inside a 'struct | ||||
* stat'. | * stat'. | ||||
*/ | */ | ||||
#if defined(__FreeBSD__) || defined(__NetBSD__) | #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) | ||||
#define ATIME st_atimespec | #define ATIME st_atimespec | ||||
#define MTIME st_mtimespec | #define MTIME st_mtimespec | ||||
#define LIBELFTC_HAVE_UTIMES 1 | #define LIBELFTC_HAVE_UTIMES 1 | ||||
#endif | #endif | ||||
#if defined(__DragonFly__) || defined(__linux__) || defined(__OpenBSD__) | #if defined(__DragonFly__) || defined(__linux__) || defined(__OpenBSD__) | ||||
#define ATIME st_atim | #define ATIME st_atim | ||||
#define MTIME st_mtim | #define MTIME st_mtim | ||||
Show All 37 Lines |