Skip to content

Conversation

@bsdimp
Copy link
Contributor

@bsdimp bsdimp commented Mar 8, 2025

FreeBSD 15 and newer finally has the timezone variable (prior it that was a compat function leftover from 4BSD). Older versions are still supported. Both have tm_gmoff, which I've always preferred for better portability.

I also considered dropping the defined(glibc), but wasn't sure how many other targets there are these days and thought this would be better. I really didn't want any FreeBSD ifdefs, but I don't know how to avoid this.

FreeBSD 15 and newer finally has the timezone variable (prior it that
was a compat function leftover from 4BSD). Older versions are still
supported. Both have tm_gmoff, which I've always preferred for better
portability.

Signed-off-by: Warner Losh <[email protected]>
@igaw
Copy link
Collaborator

igaw commented Mar 10, 2025

We could add a feature detection to meson, then there would be just a single ifdef. Just as idea.

BTW, I am fine with this approach for the time being. If you don't have bandwidth to work on, I'll just create an issue so we don't forget it and work on it later.

@igaw igaw merged commit 81c8f26 into linux-nvme:master Mar 17, 2025
17 checks passed
@igaw
Copy link
Collaborator

igaw commented Mar 17, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants