-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix some defines in libs cmake #123576
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
base: main
Are you sure you want to change the base?
Fix some defines in libs cmake #123576
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-runtime |
| #cmakedefine01 HAVE_TERMIOS2 | ||
|
|
||
| #ifndef HOST_WASI | ||
| #cmakedefine01 HAVE_GETRUSAGE |
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.
#if HAVE_GETRUSAGE was always false; since there is no initialization in .cmake file.
#if defined(HAVE_GETRUSAGE) was always true; since it is defined (with value 0)..
Simply switched a single usage to use HOST_WASI based condition instead.
| check_symbol_exists( | ||
| strlcpy | ||
| string.h | ||
| HAVE_STRLCPY) |
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.
Was mistakenly removed in 5978738 but it is still used.
No description provided.