Patch #2907 2010-01-19 00:50

terryp

Fixes ConsoleRunner build on POSIX/SUS systems
Download
2907-Fixes_ConsoleR.patch (811 bytes)
Category
Platform-Specific
Status
Accepted
Close date
2010-02-15 04:09
Assigned to
biplab
Index: debian/changelog
===================================================================
--- debian/changelog    (revision 6089)
+++ debian/changelog    (working copy)
@@ -1,4 +1,4 @@
-codeblocks (8.02svn5933) unstable; urgency=low
+codeblocks (8.02svn6089) unstable; urgency=low
 
   * more fixes to debian build system, sources and packages are now
     lintian-clean, except for some words guessed as spelling-errors.
Index: src/tools/ConsoleRunner/main.cpp
===================================================================
--- src/tools/ConsoleRunner/main.cpp    (revision 6089)
+++ src/tools/ConsoleRunner/main.cpp    (working copy)
@@ -17,6 +17,9 @@
 #else
     #define wait_key getchar
 #endif
+#if defined(__unix__) || defined(__unix)
+    #include <sys/wait.h>
+#endif
 #include <string.h>
 
 #ifdef __MINGW32__
terryp 2010-01-19 01:04

There may be better choices of #defines for detecting posix/unix/linux/bsd systems, but gcc defines both of those on my system, so that's what I used.

biplab 2010-02-15 04:09

Thanks for the patch.