Skip to content

4.8: build failure with musl libc #115

Description

@hhoffstaette

While updating my Gentoo musl chroot I was surprised by:

main.c: In function 'main':
main.c:758:31: error: assignment of read-only variable 'stdin'
  758 |                         stdin = fopen("/dev/tty", "rb");
      |                               ^

Musl does not support stdin/stdout/stderr reassignment.
In case you're wondering about the reasons.

Looks like this was introduced in 359ba5c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions