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

error: use of undeclared identifier 'waitpid' #1866

Closed
yurivict opened this issue Sep 26, 2022 · 0 comments
Closed

error: use of undeclared identifier 'waitpid' #1866

yurivict opened this issue Sep 26, 2022 · 0 comments

Comments

@yurivict
Copy link
Contributor

/disk-samsung/freebsd-ports/devel/folly/work/folly-2022.09.26.00/folly/logging/test/AsyncFileWriterTest.cpp:688:19: error: use of undeclared identifier 'waitpid'
    auto waited = waitpid(pid, &status, 0);
                  ^
/disk-samsung/freebsd-ports/devel/folly/work/folly-2022.09.26.00/folly/logging/test/AsyncFileWriterTest.cpp:774:23: error: use of undeclared identifier 'waitpid'
        auto waited = waitpid(pid, &status, 0);
                      ^

Did you forget to include <sys/wait.h>?

Version: 2022.09.26.00

facebook-github-bot pushed a commit that referenced this issue Oct 11, 2022
Summary:
Both files use these without correctly including them, causing compilation errors on some platforms.

Fixes: #1865
Fixes: #1866

Reviewed By: Gownta

Differential Revision: D40244867

fbshipit-source-id: b18a0b26a8e6576c5bf0ba5186f3cdbf11a209c8
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