Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65319 - trunk/tools/build/v2/engine/src
From: juergen.hunold_at_[hidden]
Date: 2010-09-06 10:14:12


Author: jhunold
Date: 2010-09-06 10:14:09 EDT (Mon, 06 Sep 2010)
New Revision: 65319
URL: http://svn.boost.org/trac/boost/changeset/65319

Log:
Fix: windows does not have wait(), use own macros instead.

Text files modified:
   trunk/tools/build/v2/engine/src/builtins.c | 12 +++++++++++-
   1 files changed, 11 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/engine/src/builtins.c
==============================================================================
--- trunk/tools/build/v2/engine/src/builtins.c (original)
+++ trunk/tools/build/v2/engine/src/builtins.c 2010-09-06 10:14:09 EDT (Mon, 06 Sep 2010)
@@ -26,9 +26,19 @@
 #include "timestamp.h"
 #include "md5.h"
 #include <ctype.h>
+
+#if defined(USE_EXECUNIX)
 # include <sys/types.h>
 # include <sys/wait.h>
-
+#else
+/*
+ NT does not have wait() and associated macros, it uses the return value
+ of system() instead. Status code group are documented at
+ http://msdn.microsoft.com/en-gb/library/ff565436.aspx
+*/
+# define WIFEXITED(w) (((w) & 0XFFFFFF00) == 0)
+# define WEXITSTATUS(w)(w)
+#endif
 
 /*
  * builtins.c - builtin jam rules


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk