]> Savannah Git Hosting - gnulib.git/commit
mktime: ease merge of locking code with glibc
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Jan 2025 05:08:29 +0000 (21:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Jan 2025 05:10:44 +0000 (21:10 -0800)
commit226f931f7722df834534d5d847e16f4624d31637
tree1cee8e43fab96e068e20532b6e6a245dbf3a1a80
parent1858d1e3e389958b978908ffbaef76c9846bb462
mktime: ease merge of locking code with glibc

This shouldn't affect behavior of either Gnulib or glibc.
* lib/mktime-internal.h (__libc_lock_lock, __libc_lock_unlock)
(__tzset_unlocked) [!_LIBC]: New macros.
* lib/mktime.c (tzset) [!_LIBC]: Define this instead of __tzset,
if defining either.
(__mktime64): Simplify now that mktime-internal defines
libc-specific macros to noops when !_LIBC.
ChangeLog
lib/mktime-internal.h
lib/mktime.c