]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/112110: fails to build on freebsd when compiling wrapclock.cc
authorGaius Mulley <gaiusmod2@gmail.com>
Fri, 27 Oct 2023 17:42:09 +0000 (18:42 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 27 Oct 2023 17:42:09 +0000 (18:42 +0100)
commit32cc0b82a3c2e38caa9f2266d4ba375ccb1fe9cc
tree9fdc4821b61c5a4cc4643967291b72d7766858c7
parentc6430d3e6d3279c7e4be9d189031a17bb3dec347
PR modula2/112110: fails to build on freebsd when compiling wrapclock.cc

This patch fixes a mangled #if #endif conditional section within
wrapclock.cc.  The conditional section in wrapclock_timezone
should return 0 rather than return timezone.

libgm2/ChangeLog:

PR modula2/112110
* libm2iso/wrapclock.cc (timezone): Return 0 if unable
to get the timezone from the tm struct.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
libgm2/libm2iso/wrapclock.cc