From: Joe Gorse Date: Wed, 10 May 2017 19:46:38 +0000 (+0000) Subject: LINUX: CURRENT_TIME macro goes away. X-Git-Tag: upstream/1.8.0_pre2^3~40 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b47dc5482da614742b01dcc62d5e11d766a9432f;p=packages%2Fo%2Fopenafs.git LINUX: CURRENT_TIME macro goes away. Check if the macro exists, define it if it does not. Change-Id: I9990579f94bfba0804e60fa6ddcc077984cc46c3 Reviewed-on: https://gerrit.openafs.org/12611 Reviewed-by: Mark Vitale Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- diff --git a/src/afs/LINUX/osi_file.c b/src/afs/LINUX/osi_file.c index e211c055f..1718c9606 100644 --- a/src/afs/LINUX/osi_file.c +++ b/src/afs/LINUX/osi_file.c @@ -22,6 +22,10 @@ #endif #include "osi_compat.h" +#ifndef CURRENT_TIME +#define CURRENT_TIME (current_kernel_time()) +#endif + int cache_fh_type = -1; int cache_fh_len = -1;