Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
google/protobuf/testing/zcgzip.cc:61:25: error: unknown type name 'STDOUT_FILENO' FileOutputStream fout(STDOUT_FILENO); ^ google/protobuf/testing/zcgzip.cc:61:24: warning: parentheses were disambiguated as a function declaration [-Wvexing-parse] FileOutputStream fout(STDOUT_FILENO); ^~~~~~~~~~~~~~~ google/protobuf/testing/zcgzip.cc:61:25: note: add a pair of parentheses to declare a variable FileOutputStream fout(STDOUT_FILENO); ^ ( google/protobuf/testing/zcgzip.cc:75:20: error: use of undeclared identifier 'STDIN_FILENO' readlen = read(STDIN_FILENO, outptr, outlen); ^ 1 warning and 2 errors generated. gmake[3]: *** [Makefile:4009: google/protobuf/testing/zcgzip.o] Error 1 google/protobuf/testing/zcgunzip.cc:62:23: error: unknown type name 'STDIN_FILENO' FileInputStream fin(STDIN_FILENO); ^ google/protobuf/testing/zcgunzip.cc:62:22: warning: parentheses were disambiguated as a function declaration [-Wvexing-parse] FileInputStream fin(STDIN_FILENO); ^~~~~~~~~~~~~~ google/protobuf/testing/zcgunzip.cc:62:23: note: add a pair of parentheses to declare a variable FileInputStream fin(STDIN_FILENO); ^ ( google/protobuf/testing/zcgunzip.cc:74:23: error: use of undeclared identifier 'STDOUT_FILENO' int err = write(STDOUT_FILENO, inptr, inlen); ^ 1 warning and 2 errors generated. gmake[3]: *** [Makefile:4009: google/protobuf/testing/zcgunzip.o] Error 1 Reference: https://bugs.FreeBSD.org/bugzilla/show_bug.cgi?id=215346 https://svnweb.FreeBSD.org/changeset/ports/428734
- Loading branch information
640b932
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't anybody do tests on Windows/MSVC?
Those
<unistd.h>
should IMHO be moved outside the#ifdef _WIN32
section.640b932
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it with this patch: