Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: call undecleared waitpid function on linux #16

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

Open
fmotalleb wants to merge 1 commit into TerminalStudio:main
base: main
Choose a base branch
Loading
from fmotalleb:patch-1

Conversation

@fmotalleb
Copy link

@fmotalleb fmotalleb commented Jul 6, 2024

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.

josereia, Zinc23333, and jmichiels reacted with thumbs up emoji
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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /