facebook/fbthrift

error: use of undeclared identifier 'errno'

yurivict opened this issue · 1 comments

/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

This has been fixed by #517 already.