Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2006-04-27 12:16:09 -0400
committerMarkus Schorn2006-04-27 12:16:09 -0400
commit8272805b36b67b9ff569349292cb36493c207acc (patch)
tree8ce7840c92b011e6fd06a9884b0051bc47041a11 /core/org.eclipse.cdt.core.win32/library
parent488356be7df7f9ab91bf4ce3bb58ad28061554db (diff)
downloadorg.eclipse.cdt-8272805b36b67b9ff569349292cb36493c207acc.tar.gz
org.eclipse.cdt-8272805b36b67b9ff569349292cb36493c207acc.tar.xz
org.eclipse.cdt-8272805b36b67b9ff569349292cb36493c207acc.zip
Changes to source to fix 119618, binaries to be compiled.
Diffstat (limited to 'core/org.eclipse.cdt.core.win32/library')
-rw-r--r--core/org.eclipse.cdt.core.win32/library/iostream.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/iostream.c b/core/org.eclipse.cdt.core.win32/library/iostream.c
index 163a3a8b95..7beda1cdbc 100644
--- a/core/org.eclipse.cdt.core.win32/library/iostream.c
+++ b/core/org.eclipse.cdt.core.win32/library/iostream.c
@@ -168,6 +168,18 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_SpawnerInputStream_clo
return (rc ? GetLastError() : 0);
}
+JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_SpawnerInputStream_available0
+ (JNIEnv * env, jobject proc, jint fd)
+{
+ int nAvail = 0;
+
+ if (0 == PeekNamedPipe((HANDLE)fd, NULL, 0, NULL, &nAvail, NULL)) {
+ // error
+ return 0;
+ }
+ return nAvail;
+}
+
/*
* Class: SpawnerOutputStream
* Method: write0

Back to the top