Matthew DeVore has uploaded this change for review.

View Change

Use the st_[amc]tim field names on all OS targets

Out of macOS, FreeBSD, and Linux, only macOS seems to be missing the
st_[amc]tim field names. I confirmed this on FreeBSD by checking the
/usr/include/sys/stat.h file on a FreeBSD 13 system. In that file, two
structs unconditionally included st_[amc]tim field names: 'struct stat'
and freebsd11_stat. st_[amc]timespec are defined as aliases to
st_[amc]tim.

This allows some code in src/FSAL/commonlib.c which accesses these
fields to compile on macOS.

Change-Id: Ia1084f6caff4435d8796b3ce79c3f7361151a4b6
Signed-off-by: Matthew DeVore <matvore@google.com>
---
M src/FSAL/fsal_convert.c
M src/include/common_utils.h
2 files changed, 10 insertions(+), 20 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/53/519053/1

To view, visit change 519053. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ia1084f6caff4435d8796b3ce79c3f7361151a4b6
Gerrit-Change-Number: 519053
Gerrit-PatchSet: 1
Gerrit-Owner: Matthew DeVore <matvore@comcast.net>
Gerrit-MessageType: newchange