Bug 1681445 - Fix CLOCK_MONOTONIC test by fixing typo from bug 1524461. r=firefox-build-system-reviewers,dmajor

Differential Revision: https://phabricator.services.mozilla.com/D99192
This commit is contained in:
Mike Hommey 2020-12-09 12:33:24 +00:00
parent 8ed133be47
commit a8adc74c74
2 changed files with 2 additions and 2 deletions

View File

@ -918,7 +918,7 @@ AC_CACHE_CHECK(for clock_gettime(CLOCK_MONOTONIC),
dnl clock_gettime is available on OSX since 10.12, so depending on MACOSX_DEPLOYMENT_TARGET,
dnl we should or not be able to use it. To detect if we can, we need to make the
dnl availability attribute strict, so that compilation fails when the target is < 10.12.
AC_TRY_LINK([#define availability(os, ...) availability(os, strict, __VA_ARGS)
AC_TRY_LINK([#define availability(os, ...) availability(os, strict, __VA_ARGS__)
#include <time.h>],
[ struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts); ],

View File

@ -1147,7 +1147,7 @@ AC_CACHE_CHECK(for clock_gettime(CLOCK_MONOTONIC),
dnl clock_gettime is available on OSX since 10.12, so depending on MACOSX_DEPLOYMENT_TARGET,
dnl we should or not be able to use it. To detect if we can, we need to make the
dnl availability attribute strict, so that compilation fails when the target is < 10.12.
AC_TRY_LINK([#define availability(os, ...) availability(os, strict, __VA_ARGS)
AC_TRY_LINK([#define availability(os, ...) availability(os, strict, __VA_ARGS__)
#include <time.h>],
[ struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts); ],