Skip to content

Conversation

@Ansuel
Copy link

@Ansuel Ansuel commented Nov 20, 2025

MUSL actually declare optreset and this cause compilation error: librtpp_main.c:44:12: error: static declaration of 'optreset' follows non-static declaration
44 | static int optreset; /* Not present in linux */
| ^~~~~~~~

Better handle this by scanning a declared optreset in configure.ac and depend on the HAVE_DECL_OPTRESET macro to statically declare it instead of extern reference it.

MUSL actually declare optreset and this cause compilation error:
librtpp_main.c:44:12: error: static declaration of 'optreset' follows non-static declaration
   44 | static int optreset; /* Not present in linux */
      |            ^~~~~~~~

Better handle this by scanning a declared optreset in configure.ac and
depend on the HAVE_DECL_OPTRESET macro to statically declare it instead
of extern reference it.

Signed-off-by: Christian Marangi <[email protected]>
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.

1 participant