facebook / fbthrift

Facebook's branch of Apache Thrift, including a new C++ server.
Apache License 2.0
2.55k stars 608 forks source link

error: use of undeclared identifier 'errno' #520

Closed yurivict closed 1 year ago

yurivict commented 1 year ago
/wrkdirs/usr/ports/devel/fbthrift/work/fbthrift-2022.08.22.00/thrift/compiler/parse/lexer.cc:153:3: error: use of undeclared identifier 'errno'
  errno = 0;
  ^
/wrkdirs/usr/ports/devel/fbthrift/work/fbthrift-2022.08.22.00/thrift/compiler/parse/lexer.cc:156:10: error: use of undeclared identifier 'errno'
  return errno != ERANGE
         ^
/wrkdirs/usr/ports/devel/fbthrift/work/fbthrift-2022.08.22.00/thrift/compiler/parse/lexer.cc:156:19: error: use of undeclared identifier 'ERANGE'
  return errno != ERANGE
                  ^
/wrkdirs/usr/ports/devel/fbthrift/work/fbthrift-2022.08.22.00/thrift/compiler/parse/lexer.cc:163:3: error: use of undeclared identifier 'errno'
  errno = 0;
  ^
/wrkdirs/usr/ports/devel/fbthrift/work/fbthrift-2022.08.22.00/thrift/compiler/parse/lexer.cc:165:7: error: use of undeclared identifier 'errno'
  if (errno == ERANGE) {
      ^
/wrkdirs/usr/ports/devel/fbthrift/work/fbthrift-2022.08.22.00/thrift/compiler/parse/lexer.cc:165:16: error: use of undeclared identifier 'ERANGE'
  if (errno == ERANGE) {
               ^
6 errors generated.

Version: 2022.08.22 clang-14 FreeBSD 13.1

vitaut commented 1 year ago

This has been fixed by #517 already.