[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ml pl35: Bug in waitpid



Hi,

Mintlib PL35 will fail when being built with compilers other than gcc.
I forget to sent entropy the following patch.

Sorry,

 Robert
 
 rwilhelm@physik.tu-muenchen.de
 
--------------------------------------------------------------------------- 
*** waitpid.org	Fri Sep 17 09:44:52 1993
--- waitpid.c	Fri Sep 17 11:16:34 1993
*************** waitpid(pid, _status, options)
*** 22,29 ****
  	long r;
  	int exit_status, sig_term;
  	union wait *statwait;
  	int *status = _status.__wi;
! 	
  	statwait = (union wait *) status;
  	if (__mint == 0) {
  		r = __waitval;
--- 22,33 ----
  	long r;
  	int exit_status, sig_term;
  	union wait *statwait;
+ #ifdef __GNUC__
  	int *status = _status.__wi;
! #else
! 	int *status = _status;
! #endif	
! 
  	statwait = (union wait *) status;
  	if (__mint == 0) {
  		r = __waitval;