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

fix: call undecleared waitpid function on linux #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FMotalleb
Copy link

When attempting to build a project on Debian Bookworm (unstable), an error is encountered in the file flutter_pty/src/flutter_pty_unix.c at line 114. The error message indicates that the function waitpid is undeclared and that ISO C99 and later versions do not support implicit function declarations.

To resolve this issue, you can include the header file <sys/wait.h> in the flutter_pty_unix.c file. This header file provides the declaration for the waitpid function.

By adding #include <sys/wait.h> at the top of the file, the compiler will be able to recognize and use the waitpid function correctly, resolving the error.

When attempting to build a project on Debian Bookworm (unstable), an error is encountered in the file `flutter_pty/src/flutter_pty_unix.c` at line 114. The error message indicates that the function `waitpid` is undeclared and that ISO C99 and later versions do not support implicit function declarations.

To resolve this issue, you can include the header file `<sys/wait.h>` in the `flutter_pty_unix.c` file. This header file provides the declaration for the `waitpid` function.

By adding `#include <sys/wait.h>` at the top of the file, the compiler will be able to recognize and use the `waitpid` function correctly, resolving the error.
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