[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettime-res, gettime, and Android 14
|
From: |
Bruno Haible |
|
Subject: |
Re: gettime-res, gettime, and Android 14 |
|
Date: |
Wed, 24 May 2023 10:15:28 +0200 |
Hi,
Po Lu wrote:
> Snapshots of the NDK r26 have `timespec_getres' in libc.so, which can
> only be used under API 35 (Android 14) and later.
>
> Does gettime-res require adjustments?
Probably this means that instead of
AC_CHECK_FUNCS_ONCE([timespec_getres])
we'll need to write
gl_CHECK_FUNCS_ANDROID([timespec_getres], [[#include <time.h>]])
and introduce a new AC_SUBSTed variable
REPLACE_TIMESPEC_GETRES,
using the idioms from January 2023.
Please come back to us on this when the new Android NDK has been released.
I'm not so keen on supporting snapshots of Android NDKs and unreleased
versions of Android, since that tends to introduce extra piecemeal work
and some confusion.
Bruno