[ntp:hackers] Recent C99-isms

Harlan Stenn stenn at ntp.org
Sun Jan 4 08:58:01 UTC 2015


"David J Taylor" writes:
> I had to re-open bug 2695 as it doesn't build in VS2013 either.
> 
>   http://bugs.ntp.org/show_bug.cgi?id=2695#c7
> 
> New bugs:
> 
> 'T_Mdnstries' : undeclared identifier   (keyword-gen.c)

That's a problem where I apparently didn't check in some updated files,
and the "bootstrap" process makes sure the file timestamps are such that
these updated files will not be rebuilt.  I'll regenerate these files soon.

> '__func__' : undeclared identifier  (jupiter.c)

This one is strange - we are using __func__ in a number of other places
now too, like ntp_loopfilter.c and ntpd.c.  It's also used heavily in
libevent, which is used by sntp (which is not yet built on Windows).

> Cannot open include file: 'sys/socket.h' (in refclock_nmea.c )

That's an addition from the NetBSD folks.  I'm not sure why they did
that.

We sould enclose that in #ifdef HAVE_SYS_SOCKET_H/#endif, as we do
elsewhere.

I'll push out a beta4 now with this change in it.

H


More information about the hackers mailing list