Closed spacehobo closed 1 year ago
If you drop -DUSE_C11_TIME_API
from the compile flags and instead use -DUSE_POSIX_TIME_API
, it should compile using clock_gettime() instead of timespec_get(). Failing that, -DUSE_OLD_TIME_API
will be seriously antique and use time().
I didn't set up inform6unix or its Makefile; you'll have to ask David Griffith (https://gitlab.com/DavidGriffith/inform6unix) about that.
(If -DUSE_C11_TIME_API
isn't being set in a Makefile, there's probably a -DLINUX
and then line 230 of header.h picks it up.)
Cool. I filed a merge proposal over on gitlab that at least works for me.
I've merged @spacehobo's changes.
Thanks.
Termux is admittedly a rather outre platform, being a shell environment in an app on Android. As such a lot of POSIX assumptions can go wrong, but usually things turn out all right.
One thing that's been a bit of a splinter in my fingers the past several months is the inability to build inform6unix because of the
timespec_get()
semantics under termux. This worked in the past, so either this facility was only recently added, or there's some autoconf magic that's choosing the wrong semantics based on the fact that Android has a Linux kernel or something.Here's what I get the second time I do a run, which shows the specific failure without much flannel around it (everything up to this point seems to build happily).