Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compilation on modern systems with TIME_BITS=64 #22

Merged
merged 1 commit into from
May 28, 2024
Merged

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented May 28, 2024

No description provided.

Comment on lines -313 to +319
*utime = ev.time.tv_sec + ev.time.tv_usec/1000000.0;
*utime = ev.input_event_sec + ev.input_event_usec/1000000.0;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on 64 bits systems this is a no-op as input_event_* points at time.tv_* (see torvalds/linux@152194f#diff-0028ed2bcc0d6c2118b5b33c6f3bf7d398e3df872553183ac2c0abebba562f01 which introduced that).

whether this actually works on 32 bit systems? I have no idea. it compiles and throws no warnings.

my private ppc32 system is acting up a bit, so I can't really test it rn.

@evgeni evgeni changed the title fix compilation on modern systems with TIME_BITS64 fix compilation on modern systems with TIME_BITS=64 May 28, 2024
@evgeni evgeni merged commit b9dd84b into master May 28, 2024
2 checks passed
@evgeni evgeni deleted the damn-time64 branch May 28, 2024 18:35
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.

1 participant