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

error: fix deprecated usage of sys_errlist #8

Closed
wants to merge 1 commit into from
Closed

error: fix deprecated usage of sys_errlist #8

wants to merge 1 commit into from

Conversation

shemminger
Copy link

The array sys_errlist is marked as deprecated in recent versions
of glibc. The code already attempted to use strerror_r but it
was not being used because of missing include of config.h.

But the unused code to use strerror_r had another issue because
there are two versions of strerror_r in glibc. Use the defined
feature test macro (man strerror_r) to handle both versions.

The array sys_errlist is marked as deprecated in recent versions
of glibc.  The code already attempted to use strerror_r but it
was not being used because of missing include of config.h.

But the unused code to use strerror_r had another issue because
there are two versions of strerror_r in glibc. Use the defined
feature test macro (man strerror_r) to handle both versions.
@shemminger shemminger closed this by deleting the head repository Sep 18, 2023
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