[Jack-Devel] [jackaudio/jack1] 3e26d4: Fix detection of clock_gettime() and clock_nanosle...

Adrian Knoth adi at drcomp.erfurt.thur.de
Tue Jan 10 00:43:41 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/jack1
  Commit: 3e26d4ff92789d8e4b379d50fec2de9c4471c2e1
      https://github.com/jackaudio/jack1/commit/3e26d4ff92789d8e4b379d50fec2de9c4471c2e1
  Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
  Date:   2017-01-10 (Tue, 10 Jan 2017)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  Fix detection of clock_gettime() and clock_nanosleep()

glibc above 2.17 has these functions builtin, so no need to link against librt.

When the macro succeeds, it needs to set the define to 1, not 0.

Also clarify the text message if librt is linked in.


  Commit: 5bb11a71f48de1e361731224abe83e3e79d7b905
      https://github.com/jackaudio/jack1/commit/5bb11a71f48de1e361731224abe83e3e79d7b905
  Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
  Date:   2017-01-10 (Tue, 10 Jan 2017)

  Changed paths:
    M drivers/dummy/dummy_driver.c
    M drivers/dummy/dummy_driver.h

  Log Message:
  -----------
  Use #if for HAVE_CLOCK_GETTIME in dummy driver

ifdef is useless, since the value is always defined (either to 1 or 0) in config.h.

Fix taken from

  https://svnweb.freebsd.org/ports/head/audio/jack/files/patch-drivers_dummy_dummy__driver.c?view=markup


  Commit: 8799147e66e25d3e6823ce9d6048c3ae9ee18ce9
      https://github.com/jackaudio/jack1/commit/8799147e66e25d3e6823ce9d6048c3ae9ee18ce9
  Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
  Date:   2017-01-10 (Tue, 10 Jan 2017)

  Changed paths:
    M jackd/engine.c
    M libjack/time.c

  Log Message:
  -----------
  Use #if for HAVE_CLOCK_GETTIME everywhere

ifdef is useless, since the value is always defined (either to 1 or 0) in config.h.

Fix inspired by

  https://svnweb.freebsd.org/ports/head/audio/jack/files/patch-drivers_dummy_dummy__driver.c?view=markup

Also simplified #if condition in libjack/time.c - it's easier to read a positive than a negated
condition.


Compare: https://github.com/jackaudio/jack1/compare/0dc6f4a0aba1...8799147e66e2


More information about the Jackaudio mailing list