git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix midnight volume calculation to build on Windows
[openafs.git]
/
src
/
vol
/
volume.c
diff --git
a/src/vol/volume.c
b/src/vol/volume.c
index
03b4bba
..
614abd2
100644
(file)
--- a/
src/vol/volume.c
+++ b/
src/vol/volume.c
@@
-5052,7
+5052,7
@@
Midnight(time_t t) {
struct tm local, *l;
time_t midnight;
-#ifdef AFS_PTHREAD_ENV
+#if defined(AFS_PTHREAD_ENV) && !defined(AFS_NT40_ENV)
l = localtime_r(&t, &local);
#else
l = localtime(&t);