LINUX: CURRENT_TIME macro goes away. 11/12611/2
authorJoe Gorse <jhgorse@gmail.com>
Wed, 10 May 2017 19:46:38 +0000 (19:46 +0000)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 11 May 2017 03:43:49 +0000 (23:43 -0400)
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 <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/afs/LINUX/osi_file.c

index e211c05..1718c96 100644 (file)
 #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;