git: eb8d2e123d10 - main - dhclient: fix build on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Jul 2023 20:08:28 UTC
The branch main has been updated by vangyzen: URL: https://cgit.FreeBSD.org/src/commit/?id=eb8d2e123d109ac84230c8491f3b80f6d71a1dfd commit eb8d2e123d109ac84230c8491f3b80f6d71a1dfd Author: Eric van Gyzen <vangyzen@FreeBSD.org> AuthorDate: 2023-07-10 20:03:39 +0000 Commit: Eric van Gyzen <vangyzen@FreeBSD.org> CommitDate: 2023-07-10 20:03:39 +0000 dhclient: fix build on i386 Only i386 still uses a 32-bit time_t. I knew this, and I still failed to compile-test on i386. My bad. Reported by: cy Fixes: c210cac00f258 ("dhclient: fix time parsing for leases...") Sponsored by: Dell EMC Isilon --- sbin/dhclient/tests/option-domain-search.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/dhclient/tests/option-domain-search.c b/sbin/dhclient/tests/option-domain-search.c index a3517c9c1dc1..22a7998575af 100644 --- a/sbin/dhclient/tests/option-domain-search.c +++ b/sbin/dhclient/tests/option-domain-search.c @@ -343,7 +343,9 @@ parse_date_valid(void) abort(); parse_date_helper(" 2 2024/7/2 20:25:50;\n", 1719951950); +#ifndef __i386__ parse_date_helper(" 1 2091/7/2 20:25:50;\n", 3834246350); +#endif } int