-
-
Notifications
You must be signed in to change notification settings - Fork 421
CRuntime_Musl: More fixes for time64 #3384
base: stable
Are you sure you want to change the base?
Conversation
omerfirmak
commented
Feb 26, 2021
Thanks for your pull request and interest in making D better, @omerfirmak! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "stable + druntime#3384" |
public import core.sys.windows.stdc.time; | ||
// This enum is defined only for Posix, this file is the only one | ||
// needing it in `core.stdc`. | ||
private enum CRuntime_Musl_Needs_Time64_Compat_Layer = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps all function declarations present here should be moved to core.sys.<platform>.stdc.time
then.
{ | ||
enum SO_TIMESTAMP = 63; | ||
enum SO_TIMESTAMPNS = 64; | ||
enum SO_TIMESTAMPING = 65; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, so now there is backwards compatibility with Musl, but not older Linux kernels?
The original PR (dlang#3275) missed quite a few spots and conversions, which led to the build on Alpine Linux failing with Aithmetic Exception on core.time module constructor. Links to the two offending commits are included. For further issues / investigation, search for 'time64' in the git repository. Co-Authored-By: Ömer Faruk IRMAK <[email protected]>
305adf8
to
9799355
Compare
What is the relationship between this PR and #3384 ? It seems that some changes are overlapping. Why not make a single PR with multiple commits? |
This targets stable, #3383 dmd-cxx (presumably for bootstrapping). |
@kinke Ok to merge this? |