gdl/gdl-cxx11thread.patch

21 lines
475 B
Diff
Raw Normal View History

2017-01-06 18:07:52 +00:00
Author: Ole Streicher <olebole@debian.org>
Description: Fix problems in the release candidate.
--- a/src/dinterpreter.cpp
+++ b/src/dinterpreter.cpp
@@ -1270,7 +1270,14 @@
void *inputThread(void*) {
#endif
while (1) {
- char ch = getchar(); if (ch==EOF) return NULL;
+ char ch = getchar();
+ if (ch==EOF) {
+#ifdef HAVE_CXX11THREAD
+ return;
+#else
+ return NULL;
+#endif
+ }
inputstr += ch;
if (ch == '\n')
break;