Christopher Friedt created THRIFT-5663:
------------------------------------------
Summary: lib: cpp: usleep was not declared in this scope
Key: THRIFT-5663
URL: https://issues.apache.org/jira/browse/THRIFT-5663
Project: Thrift
Issue Type: Bug
Components: C++ - Library
Reporter: Christopher Friedt
Assignee: Christopher Friedt
Travis builds are seeing multiple failures of this form:
{code:java}
src/thrift/transport/TFileTransport.cpp -fPIC -DPIC -o
src/thrift/transport/.libs/TFileTransport.o1516In file included from
./src/thrift/Thrift.h:23:0,1517 from
./src/thrift/transport/TTransport.h:23,1518 from
./src/thrift/transport/TFileTransport.h:23,1519 from
src/thrift/transport/TFileTransport.cpp:22:1520./src/thrift/concurrency/FunctionRunner.h:
In member function 'virtual void
apache::thrift::concurrency::FunctionRunner::run()':1521./src/thrift/transport/PlatformSocket.h:118:29:
error: 'usleep' was not declared in this scope1522 # define THRIFT_SLEEP_USEC
usleep1523
^1524./src/thrift/concurrency/FunctionRunner.h:104:9: note: in expansion of
macro 'THRIFT_SLEEP_USEC'1525 THRIFT_SLEEP_USEC(intervalMs_ *
1000);1526
^~~~~~~~~~~~~~~~~1527./src/thrift/transport/PlatformSocket.h:118:29: note:
suggested alternative: 'fseek'1528 # define THRIFT_SLEEP_USEC usleep1529
^1530./src/thrift/concurrency/FunctionRunner.h:104:9:
note: in expansion of macro 'THRIFT_SLEEP_USEC'1531
THRIFT_SLEEP_USEC(intervalMs_ * 1000);1532 ^~~~~~~~~~~~~~~~~ {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)