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

_GNU_SOURCE to compile with llvm/clang #29

Open
OH-AU opened this issue Nov 18, 2024 · 0 comments
Open

_GNU_SOURCE to compile with llvm/clang #29

OH-AU opened this issue Nov 18, 2024 · 0 comments

Comments

@OH-AU
Copy link

OH-AU commented Nov 18, 2024

To successfully compile with clang 18, I needed to add:
#define _GNU_SOURCE
to ONElib.c
No other change required. There may of course be a better way to address the issue?
Error generated without was:

ONElib.c:1792:29: error: call to undeclared function 'vasprintf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1792 | va_start (args, format) ; vasprintf (&p.command, format, args) ; va_end (args) ;

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

No branches or pull requests

1 participant