Re: R-alpha: small patch for building 0.4 for DecAlpha

Andrew Gallatin (gallatin@stat.Duke.EDU)
Wed, 17 Apr 1996 14:53:18 -0400 (EDT)


From: Andrew Gallatin <gallatin@stat.Duke.EDU>
Date: Wed, 17 Apr 1996 14:53:18 -0400 (EDT)
Message-Id: <199604171853.OAA02348@diego.isds.duke.edu>
To: r-testers@stat.math.ethz.ch
Subject: Re: R-alpha: small patch for building 0.4 for DecAlpha
In-Reply-To: <199604171830.OAA04882@diego.isds.duke.edu>


Andrew Gallatin writes:
 > 
 > I apologize in advance if this has already been mentioned, but I just
 > built 0.4 for our Alphas & noticed that tms struct is undefined in
 > src/main/UNIXsystem.c
 > 
 > I've appended a patch to src/main/Defn.h that pulls in the tms definition
 > from <sys/times.h>.  

Whoops.  Please ignore my previous message.

After looking at what it would take to get proc.time working
on alphas, I realize that I'm fixing the wrong problem.  A better
solution would be to protect the declaration of the tms struct in
src/main/UNIXsystem.c & to leave Defn.h alone.

Drew
##############################################################################
#		Andrew Gallatin, Computer Project Manager                    #
#	    Institute of Statistics and Decision Sciences		     #
#	  Box 90251, Duke University, Durham, NC 27708-0251		     #
##############################################################################


*** UNIXsystem.c_dist   Wed Apr 17 14:43:08 1996
--- UNIXsystem.c        Wed Apr 17 14:44:09 1996
***************
*** 119,127 ****
  {
        int value;
        char *item;
        struct tms t;
  
- #ifdef Proctime
        StartTime = times(&t);
  #endif
  
--- 119,127 ----
  {
        int value;
        char *item;
+ #ifdef Proctime
        struct tms t;
  
        StartTime = times(&t);
  #endif

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-