]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Define _POSIX_THREAD_SAFE_FUNCTIONS (MinGW-w64)
authorWolfgang Stöggl <c72578@yahoo.de>
Sun, 19 May 2019 18:28:59 +0000 (20:28 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Sun, 19 May 2019 19:47:42 +0000 (21:47 +0200)
commit9f7056505eb656c099fe0237c425b95e25215143
treefa19367b5907231db379c5b172a597833c78947b
parenta5e2b23394fd30787857c9786b0f412486b1e106
Define _POSIX_THREAD_SAFE_FUNCTIONS (MinGW-w64)

- time.h of MinGW-w64 requires _POSIX_THREAD_SAFE_FUNCTIONS to be
  defined in order to provide ctime_r, gmtime_r or localtime_r.
- In newer versions of winpthreads (e.g. git-7.0.0.5447.a2d94c81),
  _POSIX_THREAD_SAFE_FUNCTIONS is not defined any more in
  pthread_unistd.h. Hence define it here directly.
- This is a follow-up to commit:
  https://github.com/oetiker/rrdtool-1.x/commit/603de9a
configure.ac
src/rrd_config_bottom.h
src/rrd_rpncalc.c