mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-22 09:12:22 -05:00
Add patch from cygwin
This commit is contained in:
parent
2b1396add3
commit
35fd47da55
@ -370,13 +370,13 @@ strip_hidden_attribute (char *src, char *dst)
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__)
|
#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__CYGWIN__)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
get_cpu_info (double *mhz, int *cpus)
|
get_cpu_info (double *mhz, int *cpus)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef USING_LINUX
|
#if defined(USING_LINUX) || defined (__CYGWIN__)
|
||||||
|
|
||||||
char buf[256];
|
char buf[256];
|
||||||
int fh;
|
int fh;
|
||||||
@ -610,7 +610,7 @@ get_sys_str (int with_cpu)
|
|||||||
char *
|
char *
|
||||||
get_sys_str (int with_cpu)
|
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;
|
double mhz;
|
||||||
#endif
|
#endif
|
||||||
int cpus = 1;
|
int cpus = 1;
|
||||||
@ -624,7 +624,7 @@ get_sys_str (int with_cpu)
|
|||||||
|
|
||||||
uname (&un);
|
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);
|
get_cpu_info (&mhz, &cpus);
|
||||||
if (mhz && with_cpu)
|
if (mhz && with_cpu)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user