You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/06/26 20:15:47 UTC
svn commit: r1139895 -
/commons/sandbox/runtime/trunk/src/main/native/shared/select.c
Author: mturk
Date: Sun Jun 26 18:15:47 2011
New Revision: 1139895
URL: http://svn.apache.org/viewvc?rev=1139895&view=rev
Log:
ifdef out unused loop in windows
Modified:
commons/sandbox/runtime/trunk/src/main/native/shared/select.c
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/select.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/select.c?rev=1139895&r1=1139894&r2=1139895&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/select.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/select.c Sun Jun 26 18:15:47 2011
@@ -83,7 +83,10 @@ ACR_NET_EXPORT(jint, Select, wait0)(JNI_
#endif
tp = &tv;
}
- for (;;) {
+#if !defined(WINDOWS)
+ for (;;)
+#endif
+ {
if (tp != 0) {
tp->tv_sec = (long)AcrTimeSec(tmo);
tp->tv_usec = (long)AcrTimeUsec(tmo);
@@ -100,8 +103,8 @@ ACR_NET_EXPORT(jint, Select, wait0)(JNI_
}
}
else
+ break;
#endif
- break;
}
if (ns == -1) {
int err = ACR_GET_NETOS_ERROR();