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

PrevNext  Index
DateMon, 09 Jan 2017 15:43:41 -0800
From Adrian Knoth <[hidden] at drcomp dot erfurt dot thur dot de>
To[hidden] at jackaudio dot org
  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/jack1
  Commit: 3e26d4ff92789d8e4b379d50fec2de9c4471c2e1
      https://github.com/jackaudio/jack1/commit/3e26d4ff92789d8e4b379d50fec2de9c4471c2e1
  Author: Adrian Knoth <[hidden]>
  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 <[hidden]>
  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 <[hidden]>
  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
PrevNext  Index

1484005482.5536_0.ltw:2,a <5874202d1469a_1f43a3f843a17714c463b5 at hookshot-fe-6dbb0c4 dot cp1-iad dot github dot net dot mail>