From: Juergen Perlinger Date: Tue, 20 Aug 2019 06:36:42 +0000 (+0200) Subject: [Bug3608] libparse fails to compile on S11.4SRU13 and later X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8bb370b8c98ae590baf5c9e48831dd2e311e9a1;p=thirdparty%2Fntp.git [Bug3608] libparse fails to compile on S11.4SRU13 and later bk: 5d5b94faEaGWN88FFs0dCXKUnsZR4g --- diff --git a/ChangeLog b/ChangeLog index a796d737c..64f404a51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ --- +* [Bug 3608] libparse fails to compile on S11.4SRU13 and later + - removed ffs() and fls() prototypes as per Brian Utterback * [Bug 3604] Wrong param byte order passing into record_raw_stats() in ntp_io.c - fixed byte and paramter order as suggested by wei6410@sina.com diff --git a/libparse/Makefile.am b/libparse/Makefile.am index 41528a76b..8fb089f77 100644 --- a/libparse/Makefile.am +++ b/libparse/Makefile.am @@ -164,9 +164,11 @@ parse: $(parsesolaris_OBJECTS) libparse_kernel.a ../libntp/libntp.a parsesolaris.o: sys/systm.h +# [Bug3608] Solaris has inconsistent definitions of ffs() and fls(). Drop the +# ones from 'systm.h'. sys/systm.h: -mkdir sys - sed -e '/ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h + sed -e '/f[fl]s(.*)/d' < /usr/include/sys/systm.h > sys/systm.h ## check-libparse is invoked by ntpd/Makefile.am check-libparse: $(noinst_LIBRARIES)