From ba23ca085f56006a82b84ce76beaa6edc7496d48 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Sat, 18 Jun 2011 23:52:14 +0000 Subject: Switch from USEC_PER_SEC/NSEC_PER_SEC/NSEC_PER_USEC to TimeValue constants Fixes the Linux build. llvm-svn: 133370 --- lldb/source/Core/ConnectionFileDescriptor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Core/ConnectionFileDescriptor.cpp') diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp index 2de4dac31df..e367a9cf3ee 100644 --- a/lldb/source/Core/ConnectionFileDescriptor.cpp +++ b/lldb/source/Core/ConnectionFileDescriptor.cpp @@ -735,8 +735,8 @@ ConnectionFileDescriptor::SetSocketRecieveTimeout (uint32_t timeout_usec) return true; struct timeval timeout; - timeout.tv_sec = timeout_usec / USEC_PER_SEC; - timeout.tv_usec = timeout_usec % USEC_PER_SEC; + timeout.tv_sec = timeout_usec / TimeValue::MicroSecPerSec; + timeout.tv_usec = timeout_usec % TimeValue::MicroSecPerSec; if (::setsockopt (m_fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)) == 0) { m_socket_timeout_usec = timeout_usec; -- cgit v1.2.3