[master] 1db3bd7 Use stat::st_mtime instead of st_mtim for OS/X

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 29 00:21:11 CEST 2017


commit 1db3bd7dbc52b3e56ad3aac96c63cf92aa23d8b7
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 28 22:19:39 2017 +0000

    Use stat::st_mtime instead of st_mtim for OS/X
    
    Spotted by:	fgs

diff --git a/lib/libvarnishapi/vsm.c b/lib/libvarnishapi/vsm.c
index 848fcf3..21618b0 100644
--- a/lib/libvarnishapi/vsm.c
+++ b/lib/libvarnishapi/vsm.c
@@ -361,7 +361,7 @@ vsm_refresh_set2(struct vsm *vd, struct vsm_set *vs, struct vsb *vsb)
 	    st.st_mode != vs->fst.st_mode ||
 	    st.st_size != vs->fst.st_size ||
 	    st.st_nlink < 1 ||
-	    memcmp(&st.st_mtim, &vs->fst.st_mtim, sizeof st.st_mtim))) {
+	    memcmp(&st.st_mtime, &vs->fst.st_mtime, sizeof st.st_mtime))) {
 		closefd(&vs->fd);
 	}
 



More information about the varnish-commit mailing list