<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="monospace">I fixed it by adding after private.h line
558:</font></p>
<p><font face="monospace">It now reads</font></p>
<p><font face="monospace">#if (__STDC_VERSION__ < 199901
&& !defined restrict \<br>
&& (PORT_TO_C89 || defined _MSC_VER))<br>
# define restrict<br>
#else<br>
# define restrict<br>
#endif<br>
</font></p>
<p><font face="monospace">But I wonder why nobody stumbled upon
this.<br>
</font></p>
<div class="moz-cite-prefix">On 16.11.23 20:51, Alois Treindl via tz
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2f24ffe8-9431-43da-ae13-9aee70e30307@astro.ch">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p><font face="monospace">I just made a new clone of tz.</font></p>
<p><font face="monospace">I work normally on RHEL 7 (redhat
enterprise Linux)<br>
with gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) <br>
</font></p>
<p><font face="monospace">When I say make or make all, I get
something I never observed before:<br>
</font></p>
<p><font face="monospace">cc -DTZDIR='"/usr/share/zoneinfo"' -c
-o zic.o zic.c<br>
In file included from zic.c:16:0:<br>
private.h:791:60: error: conflicting types for ‘restrict’<br>
struct tm *localtime_rz(timezone_t restrict, time_t const
*restrict,<br>
^<br>
private.h:791:36: note: previous definition of ‘restrict’ was
here<br>
struct tm *localtime_rz(timezone_t restrict, time_t const
*restrict,<br>
^<br>
private.h:792:15: error: conflicting types for ‘restrict’<br>
struct tm *restrict);<br>
^<br>
private.h:791:60: note: previous definition of ‘restrict’ was
here<br>
struct tm *localtime_rz(timezone_t restrict, time_t const
*restrict,<br>
^<br>
private.h:793:49: error: conflicting types for ‘restrict’<br>
time_t mktime_z(timezone_t restrict, struct tm *restrict);<br>
^<br>
private.h:793:28: note: previous definition of ‘restrict’ was
here<br>
time_t mktime_z(timezone_t restrict, struct tm *restrict);</font></p>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace">This does not happen when I compile on
RHEL 9 <br>
gcc version 11.4.1 20230605 (Red Hat 11.4.1-2) (GCC) <br>
</font></p>
<p><font face="monospace">Can anyone point me to a fix?<br>
</font></p>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace"><br>
</font></p>
</blockquote>
</body>
</html>