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

libssh: fix build with old libssh versions #8574

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Mar 10, 2022

... that don't have the SSH_S_* defines. Spotted on a machine using
libssh 0.7.3

... that don't have the SSH_S_* defines. Spotted on a machine using
libssh 0.7.3
@bagder bagder closed this in 7b0fd39 Mar 10, 2022
@bagder bagder deleted the bagder/libssh-symbols branch March 10, 2022 18:52
jay added a commit to jay/curl that referenced this pull request Mar 12, 2022
- If building libcurl against an old libssh version missing SSH_S_IFMT
  and SSH_S_IFLNK then use the values from a supported version.

Prior to this change if libssh did not define SSH_S_IFMT and SSH_S_IFLNK
then S_IFMT and S_IFLNK, respectively, were used instead. The problem
with that is the user's S_ stat macros don't have the same values across
platforms. For example Windows has values different from Linux.

Follow-up to 7b0fd39.

Ref: curl#8511 (comment)
Ref: curl#8574

Closes #xxxx
jay added a commit that referenced this pull request Mar 14, 2022
- If building libcurl against an old libssh version missing SSH_S_IFMT
  and SSH_S_IFLNK then use the values from a supported version.

Prior to this change if libssh did not define SSH_S_IFMT and SSH_S_IFLNK
then S_IFMT and S_IFLNK, respectively, were used instead. The problem
with that is the user's S_ stat macros don't have the same values across
platforms. For example Windows has values different from Linux.

Follow-up to 7b0fd39.

Ref: #8511 (comment)
Ref: #8574

Closes #8588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

1 participant