diff options
Diffstat (limited to 'lib/Exceptions.cc')
| -rw-r--r-- | lib/Exceptions.cc | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc index 096ba46..f37832d 100644 --- a/lib/Exceptions.cc +++ b/lib/Exceptions.cc @@ -17,7 +17,7 @@   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   */ -/* $Id: Exceptions.cc,v 1.40 2006-10-28 16:42:19 pixel Exp $ */ +/* $Id: Exceptions.cc,v 1.41 2006-11-14 10:10:10 pixel Exp $ */  #include <string.h>  #include <errno.h> @@ -38,6 +38,10 @@  #ifdef HAVE_PIPE  #include <unistd.h>  #endif +#ifdef HAVE_FORK +#include <sys/types.h> +#include <sys/wait.h> +#endif	        #include "BString.h"  #include "Exceptions.h"  #include "generic.h" @@ -208,9 +212,9 @@ pid_t xfork() throw (GeneralException) {  }  #endif -#ifdef HAVE_WAIT +#ifdef HAVE_FORK  pid_t xwait(int * s) throw (GeneralException) { -    return wait(s); +    return ::wait(s);  }  #else  pid_t xwait(int *) throw (GeneralException) {  | 
