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

Re: Bug#144819: time: Fail to compile on alpha



On Sun, Apr 28, 2002 at 10:39:11AM +0200, Petter Reinholdtsen wrote:
> 
> Package: time
> Version: 1.7-12
> Severity: serious
> 
> The current source fail to build on alpha.  The problem is that
> configure fail to detect a working wait3(), 

Correct, that would be a problem in autoconf.

> but the struct rusage is already defined.

Incorrect. It gets defined in time's own resuse.h if and only if the
configure fails. But as it fails accidentally, we can simply include the
common Alpha definition as e.g. per

edd@sonny:~/debian/time-1.7> diff -u resuse.h /tmp/resuse.h
--- resuse.h	Wed Jun 12 12:36:54 1996
+++ /tmp/resuse.h	Sun Apr 28 10:11:03 2002
@@ -39,6 +39,9 @@
 # if HAVE_WAIT3
 #  include <sys/resource.h>
 # else
+#  if CONFIG_ALPHA
+#    include <sys/resource.h>
+#  else 
 /* Process resource usage structure.  */
 struct rusage
 {
@@ -49,6 +52,7 @@
   ru_oublock, ru_msgsnd, ru_msgrcv, ru_nsignals,
   ru_nvcsw, ru_nivcsw;
 };
+#  endif
 # endif
 #endif
 

To the Alpha folks:  is that a good enough patch or should I have an if
statement on another Alpha variable?

Dirk

-- 
Good judgement comes from experience; experience comes from bad judgement. 
							    -- Fred Brooks


-- 
To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: