Skip to content

Compile Error in lib/err/errPosix.c: assignment to 'char *' from 'int' #770

@smogm

Description

@smogm

Describe the bug

With recent gcc 14.3.0 compilation failes in here because of

The XSI-compliant version of strerror_r() is provided if:
(_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE
Otherwise, the GNU-specific version is provided.

See https://linux.die.net/man/3/strerror_r

Reproduction steps

...

Expected behavior

The variable p should be declared as int in #if defined(__linux__) and as char* in the else part.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions