]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Fix multiple ntp configuration issues
authorBrandon Bergren <bdragon@FreeBSD.org>
Wed, 23 Sep 2020 02:37:27 +0000 (02:37 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Wed, 23 Sep 2020 02:37:27 +0000 (02:37 +0000)
commitab2032371edc4a656ddbdfc0f2411b6ee6e2b7e9
treeda08d77bfed2552428c92b3606dd78f00cdc14f9
parent93a5341930304926f8f2608e6c7ed391df51a873
[PowerPC] Fix multiple ntp configuration issues

* powerpc time_t is 64 bit, not 32 bit.

* Add definition for powerpc64le.

With this, powerpc64le ntpd and ntpdate operate correctly instead of
corrupting the clock and exiting.

Tested on powerpc64, powerpc64le, and powerpc.

No feedback from cy@.

I am a bit confused as to how SIZEOF_TIME_T being wrong ever worked on
powerpc, it being big endian and all.

Sponsored by: Tag1 Consulting, Inc.
Differential Revision: https://reviews.freebsd.org/D26379
usr.sbin/ntp/config.h