Changeset 11074


Ignore:
Timestamp:
01/04/12 21:08:30 (13 years ago)
Author:
Eric.Larour
Message:

Bug fix: get_rusage prototype was getting redefined for some reason we now lost,
hence creating an issue when calling the real get_rusage. Fixed it by commenting out.
Addressing compilation on unix systems where RUSAGE_SELF is defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/Chacox/chaco_seconds.cpp

    r4639 r11074  
    1212/* This timer is faster and more robust (if it exists). */
    1313    struct rusage rusage;
    14     int getrusage();
     14    /*int getrusage(); commenting this out. not sure why it's there anymore
     15         *as it clobbers the prototype int getrusag(int target,rusage* results) which
     16         *is defined in the <sys/time.h> and <sys/resource.h> header files. Leaving it
     17         *for reference in case we have a problem here in the future*/
    1518 
    1619    getrusage(RUSAGE_SELF, &rusage);
Note: See TracChangeset for help on using the changeset viewer.