diff options
author | TingPing <tingping@fedoraproject.org> | 2014-09-06 10:14:52 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-12-15 11:07:47 -0500 |
commit | 35fd47da5509e0a3e651a29810e668cb9f655db2 (patch) | |
tree | b7ef7c7f1e73a562f90dfe7d5bad7aaf974e91e1 /src/common/util.c | |
parent | 2b1396add398a233b42a986a06af348e15f4259c (diff) |
Add patch from cygwin
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/util.c b/src/common/util.c index 210951be..764db841 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -370,13 +370,13 @@ strip_hidden_attribute (char *src, char *dst) return len; } -#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) +#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__CYGWIN__) static void get_cpu_info (double *mhz, int *cpus) { -#ifdef USING_LINUX +#if defined(USING_LINUX) || defined (__CYGWIN__) char buf[256]; int fh; @@ -610,7 +610,7 @@ get_sys_str (int with_cpu) char * get_sys_str (int with_cpu) { -#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) +#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__CYGWIN__) double mhz; #endif int cpus = 1; @@ -624,7 +624,7 @@ get_sys_str (int with_cpu) uname (&un); -#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) +#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__CYGWIN__) get_cpu_info (&mhz, &cpus); if (mhz && with_cpu) { |