Print

Print


Addresses issue https://github.com/xrootd/xrootd/issues/846

Note I have left the check on whether or not to use the fallback code based on whether or not `CLOCK_REALTIME` is defined. A possible alternative check would be on the system version, e.g.

```
#if __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200
...
#endif
```

Its not obvious to me which is better, so I have left it as per my original version.

Also, this PR is against the `stable-4.8.x` branch. Hope this is OK. You should be able to cherry pick it to `master` as well if required.
You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/847

-- Commit Summary --

  * [XrdSys] Fix use of clock_gettime on pre OSX10.12 systems

-- File Changes --

    M src/XrdSys/XrdSysPthread.hh (29)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/847.patch
https://github.com/xrootd/xrootd/pull/847.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/847

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1