Skip to content

Compiler error: ‘in4addr_any’ undeclared when cross compiling with MinWG #97

Description

@FL140

I am running into the error:

.../_deps/mdns-src/mdns.c:672:38: error: ‘in4addr_any’ undeclared (first use in this function); did you mean ‘in6addr_any’?
  672 |                 sock_addr.sin_addr = in4addr_any;
      |                                      ^~~~~~~~~~~
      |                                      in6addr_any

This looks to be a similar problem as in issue #20.

Commenting out the line as a workaround as proposed in issue #20 solves the compilation error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions