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

mongoose.c: Fix SO_NOSIGPIPE change #2729

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

gdt
Copy link
Collaborator

@gdt gdt commented Nov 26, 2023

On NetBSD 10, this fails to build, with both sock and nopipe undefined, and code reading agrees with the compiler.

  • Define nopipe, used in the ioctl, guarded by the same ifdef, in 2 places.
    • Add ifdef guard in the 1 existing place
  • Use nc->sock instead of bare sock

On NetBSD 10, this fails to build, with both sock and nopipe
undefined, and code reading agrees with the compiler.
  - Define nopipe, used in the ioctl, guarded by the same ifdef, in 2 places.
    - Add ifdef guard in the 1 existing place
  - Use nc->sock instead of bare sock
@gdt
Copy link
Collaborator Author

gdt commented Nov 26, 2023

I don't see that the build failure is related to building on NetBSD. From code reading, this must fail to build on all platforms that support SO_NOSIGPIPE.

@gdt
Copy link
Collaborator Author

gdt commented Nov 26, 2023

rtl_433 builds ok on Raspberry Pi OS 12 and actual Debian 12, but both appear not to define SO_NOSIGPIPE.

This PR builds ok on Debian 12.

@zuckschwerdt
Copy link
Collaborator

Thanks! I made quite some copy+paste errors there.

@zuckschwerdt zuckschwerdt merged commit 319fd76 into merbanan:master Nov 26, 2023
5 checks passed
@gdt gdt deleted the fix-mongoose-nopipe branch November 26, 2023 19:35
zuckschwerdt pushed a commit that referenced this pull request Nov 28, 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.

2 participants