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

Update jq_fuzz_load_file.c: Add missing include unistd.h #3085

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

maflcko
Copy link
Contributor

@maflcko maflcko commented Mar 29, 2024

This is needed for clang-18:

tests/jq_fuzz_load_file.c:9:42: error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    9 |   sprintf(filename, "/tmp/libfuzzer.%d", getpid());
      |                                          ^
tests/jq_fuzz_load_file.c:24:3: error: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   24 |   unlink(filename);
      |   ^
2 errors generated.
ERROR:__main__:Building fuzzers failed.

@wader wader merged commit 6408338 into jqlang:master Mar 29, 2024
28 checks passed
@wader
Copy link
Member

wader commented Mar 29, 2024

Thanks!

@maflcko maflcko deleted the patch-1 branch March 29, 2024 09:14
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.

None yet

2 participants