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

Don't use CLOCK_UPTIME_RAW if it won't be defined (#16951) #19252

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

copybara-service[bot]
Copy link

Don't use CLOCK_UPTIME_RAW if it won't be defined (#16951)

This will fix #15957 by not trying to use CLOCK_UPTIME_RAW if the feature test macros are not currently set to make it available.

Since the build system is in charge of the feature test macros, and since this header might be included under any end user program's build system, we can't just #define the macros we would like.

Closes #16951

COPYBARA_INTEGRATE_REVIEW=#16951 from adamnovak:patch-1 cebf44e
FUTURE_COPYBARA_INTEGRATE_REVIEW=#16951 from adamnovak:patch-1 cebf44e

This will fix #15957 by not trying to use CLOCK_UPTIME_RAW if the feature test macros are not currently set to make it available.

Since the build system is in charge of the feature test macros, and since this header might be included under any end user program's build system, we can't just #define the macros we would like.

Closes #16951

COPYBARA_INTEGRATE_REVIEW=#16951 from adamnovak:patch-1 cebf44e
PiperOrigin-RevId: 696251619
@copybara-service copybara-service bot merged commit 097dcda into main Nov 13, 2024
@copybara-service copybara-service bot deleted the test_696207015 branch November 13, 2024 21:33
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.

CLOCK_UPTIME_RAW isn't always available on __APPLE__
1 participant