]> 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>
Thu, 9 Nov 2023 16:14:43 +0000 (16:14 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Thu, 9 Nov 2023 16:14:43 +0000 (16:14 +0000)
commit61025fbaf989a57ebf44f76d397fb895be0210ac
treeef6a1c18eeac75b208fcde4d2996e651fa8cec95
parent4b49dfe2773e064362b13a45c29278094c6a6bb4
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