ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/cpu_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/cpu_stats.c (file contents):
Revision 1.13 by ats, Sun Oct 19 02:03:02 2003 UTC vs.
Revision 1.14 by ats, Mon Nov 10 23:25:45 2003 UTC

# Line 29 | Line 29
29   #include <sys/sysinfo.h>
30   #include <string.h>
31   #endif
32 < #ifdef LINUX
32 > #if defined(LINUX) || defined(CYGWIN)
33   #include <stdio.h>
34   #endif
35   #ifdef FREEBSD
# Line 99 | Line 99 | cpu_states_t *get_cpu_totals(){
99          
100          kstat_close(kc);
101   #endif
102 < #ifdef LINUX
102 > #if defined(LINUX) || defined(CYGWIN)
103          if ((f=fopen("/proc/stat", "r" ))==NULL) {
104                  return NULL;
105          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines