You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2017/11/18 01:55:44 UTC

[trafficserver] branch master updated: Fixed broken build on OSX where st_mtim is not defined

This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new f43af44  Fixed broken build on OSX where st_mtim is not defined
f43af44 is described below

commit f43af445ba4d308532644dc867e1543364e4600b
Author: Bryan Call <bc...@apache.org>
AuthorDate: Sat Nov 18 09:31:32 2017 +0800

    Fixed broken build on OSX where st_mtim is not defined
---
 iocore/net/SSLConfig.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/net/SSLConfig.cc b/iocore/net/SSLConfig.cc
index 7af5c9e..f50c72f 100644
--- a/iocore/net/SSLConfig.cc
+++ b/iocore/net/SSLConfig.cc
@@ -555,7 +555,7 @@ SSLTicketParams::LoadTicket()
     // See if the file changed since we last loaded
     struct stat sdata;
     if (stat(ticket_key_filename, &sdata) >= 0) {
-      if (sdata.st_mtim.tv_sec <= last_load_time) {
+      if (sdata.st_mtime <= last_load_time) {
         // No updates since last load
         return false;
       }

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].