summaryrefslogtreecommitdiff
path: root/ace/OS.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-22 15:57:38 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-22 15:57:38 +0000
commit6c6a5c94f38fe307ab1c0ea4631205b27dda7614 (patch)
tree59e3bc7f18e48c5cd920d3ed6d1e28f501c63916 /ace/OS.i
parent9460ed5862408753d418b6b6664907226350a2ac (diff)
downloadATCD-6c6a5c94f38fe307ab1c0ea4631205b27dda7614.tar.gz
(ACE_cond_t::waiters): only define this function if ACE_HAS_THREADS
Diffstat (limited to 'ace/OS.i')
-rw-r--r--ace/OS.i34
1 files changed, 17 insertions, 17 deletions
diff --git a/ace/OS.i b/ace/OS.i
index b745889816d..241ce0b6c6c 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -4661,12 +4661,12 @@ ACE_OS::recvmsg (ACE_HANDLE handle, struct msghdr *msg, int flags)
(WSABUF *) msg->msg_iov,
msg->msg_iovlen,
&bytes_received,
- (DWORD *) &flags,
- msg->msg_name,
- &msg->msg_namelen,
- 0,
- 0);
-
+ (DWORD *) &flags,
+ msg->msg_name,
+ &msg->msg_namelen,
+ 0,
+ 0);
+
if (result != 0)
{
errno = ::GetLastError ();
@@ -4687,8 +4687,8 @@ ACE_OS::recvmsg (ACE_HANDLE handle, struct msghdr *msg, int flags)
}
ACE_INLINE int
-ACE_OS::sendmsg (ACE_HANDLE handle,
- const struct msghdr *msg,
+ACE_OS::sendmsg (ACE_HANDLE handle,
+ const struct msghdr *msg,
int flags)
{
// ACE_TRACE ("ACE_OS::sendmsg");
@@ -4699,12 +4699,12 @@ ACE_OS::sendmsg (ACE_HANDLE handle,
(WSABUF *) msg->msg_iov,
msg->msg_iovlen,
&bytes_sent,
- flags,
- msg->msg_name,
- msg->msg_namelen,
- 0,
- 0);
-
+ flags,
+ msg->msg_name,
+ msg->msg_namelen,
+ 0,
+ 0);
+
if (result != 0)
{
errno = ::GetLastError ();
@@ -6348,7 +6348,7 @@ ACE_OS::recvv (ACE_HANDLE handle,
}
else
return (ssize_t) bytes_received;
-#else
+#else
return ACE_OS::readv (handle, buffers, n);
#endif /* ACE_HAS_WINSOCK2 */
}
@@ -9921,13 +9921,13 @@ ACE_OS::getcwd (wchar_t *buf, size_t size)
# endif /* ACE_WIN32 */
#endif /* ACE_HAS_UNICODE */
-#if defined (ACE_LACKS_COND_T)
+#if defined (ACE_LACKS_COND_T) && defined (ACE_HAS_THREADS)
ACE_INLINE long
ACE_cond_t::waiters (void) const
{
return this->waiters_;
}
-#endif /* ACE_LACKS_COND_T */
+#endif /* ACE_LACKS_COND_T && ACE_HAS_THREADS */
#if 0
ACE_INLINE int