NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/59543: Build fails on Linux host
The following reply was made to PR misc/59543; it has been noted by GNATS.
From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: misc/59543: Build fails on Linux host
Date: Thu, 24 Jul 2025 01:01:44 +0700
Date: Wed, 23 Jul 2025 16:05:01 +0000 (UTC)
From: "Hans Rosenfeld via gnats" <gnats-admin%NetBSD.org@localhost>
Message-ID: <20250723160501.88AE11A923E%mollari.NetBSD.org@localhost>
| To use timercmp(), _BSD_SOURCE needs to be defined (if this manpage is to
| be believed: https://linux.die.net/man/3/timercmp). Can you try adding
| -D_BSD_SOURCE to HOST_CPPFLAGS in the fc-cache Makefile?
That might work, but isn't the correct solution, anything built as part
of the tools build needs to work using just standard functions (or macros)
and timercmp() isn't (regardless how prevalent it might be), or functions
defined in the tools compat header.
I am about to commit a change which will simply define timercmp() in
the relevant file if it isn't defined - there's nothing even vaguely
system (or anything else) dependent about it. That should fix it.
Home |
Main Index |
Thread Index |
Old Index