commit | 6c26fad24613c208cdc5d268dd96bcf7d91f312d | [log] [tgz] |
---|---|---|
author | Roger Meier <roger@apache.org> | Thu Dec 08 20:44:16 2011 +0000 |
committer | Roger Meier <roger@apache.org> | Thu Dec 08 20:44:16 2011 +0000 |
tree | ac756be592602f7bb652b744f6bdf2cceab8faef | |
parent | d0cdecf4a1baec625cf73e91b0cef406c7b4039e [diff] |
THRIFT-1433 TServerSocket fix for MSVC Patch: Peace C git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1212109 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/windows/config.h b/lib/cpp/src/windows/config.h index 272a070..3af158a 100644 --- a/lib/cpp/src/windows/config.h +++ b/lib/cpp/src/windows/config.h
@@ -72,6 +72,11 @@ // Missing functions. #define usleep(ms) Sleep(ms) +inline int sleep(DWORD ms) +{ + Sleep(ms); + return 0; +} #if WINVER <= 0x0502 #define poll(fds, nfds, timeout) \