diff -Nru boinc-5.10.27.orig/client/hostinfo_unix.C boinc-5.10.27/client/hostinfo_unix.C
old
|
new
|
|
132 | 132 | time_data = localtime( &cur_time ); |
133 | 133 | // tm_gmtoff is already adjusted for daylight savings time |
134 | 134 | return time_data->tm_gmtoff; |
135 | | #elif defined(linux) |
| 135 | #elif defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) |
136 | 136 | return -1*(__timezone); |
137 | 137 | #elif defined(__CYGWIN32__) |
138 | 138 | return -1*(_timezone); |
… |
… |
|
173 | 173 | CFRelease(list); |
174 | 174 | return(retval); |
175 | 175 | |
176 | | #elif defined(linux) |
| 176 | #elif defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) |
177 | 177 | bool retval = false; |
178 | 178 | |
179 | 179 | FILE* fapm = fopen("/proc/apm", "r"); |
… |
… |
|
237 | 237 | #endif |
238 | 238 | } |
239 | 239 | |
240 | | #ifdef linux |
| 240 | #if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) |
241 | 241 | static void parse_meminfo_linux(HOST_INFO& host) { |
242 | 242 | char buf[256]; |
243 | 243 | double x; |
… |
… |
|
449 | 449 | strlcpy(host.p_model, model_buf, sizeof(host.p_model)); |
450 | 450 | fclose(f); |
451 | 451 | } |
452 | | #endif // linux |
| 452 | #endif // __linux__ || __GNU__ || __GLIBC__ |
453 | 453 | |
454 | 454 | #ifdef __APPLE__ |
455 | 455 | static void get_cpu_info_maxosx(HOST_INFO& host) { |
… |
… |
|
520 | 520 | get_filesystem_info(d_total, d_free); |
521 | 521 | |
522 | 522 | ///////////// p_vendor, p_model, p_features ///////////////// |
523 | | #ifdef linux |
| 523 | #if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) |
524 | 524 | parse_cpuinfo_linux(*this); |
525 | 525 | #elif defined( __APPLE__) |
526 | 526 | int mib[2]; |
… |
… |
|
604 | 604 | DosQuerySysInfo( QSV_TOTAVAILMEM, QSV_TOTAVAILMEM, &ulMem, sizeof(ulMem)); |
605 | 605 | m_swap = ulMem; |
606 | 606 | } |
607 | | #elif defined(linux) |
| 607 | #elif defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) |
608 | 608 | parse_meminfo_linux(*this); |
609 | 609 | #elif defined(_SC_USEABLE_MEMORY) |
610 | 610 | // UnixWare |
diff -Nru boinc-5.10.27.orig/client/main.C boinc-5.10.27/client/main.C
old
|
new
|
|
641 | 641 | break; |
642 | 642 | } |
643 | 643 | } |
644 | | #elif defined linux |
| 644 | #elif defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) |
645 | 645 | int i; |
646 | 646 | |
647 | 647 | for (i=1; i<argc; i++) { |
… |
… |
|
734 | 734 | "To change ownership/permission, reinstall BOINC" |
735 | 735 | #ifdef __APPLE__ |
736 | 736 | " or run\n the shell script Mac_SA_Secure.sh" |
737 | | #elif defined linux |
| 737 | #elif defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) |
738 | 738 | " or run\n the shell script secure.sh" |
739 | 739 | #endif |
740 | 740 | ". (Error code %d)\n", i |
diff -Nru boinc-5.10.27.orig/configure.ac boinc-5.10.27/configure.ac
old
|
new
|
|
230 | 230 | dnl than subtract them. If you need to remove something from the list above, |
231 | 231 | dnl please add it to the lists below... |
232 | 232 | case ${target} in |
233 | | *-linux*) STATIC_LIB_LIST="${STATIC_LIB_LIST} nsl" |
| 233 | *-linux*|*-k*bsd*-gnu) STATIC_LIB_LIST="${STATIC_LIB_LIST} nsl" |
234 | 234 | ;; |
235 | 235 | *-solaris*) STATIC_LIB_LIST="${STATIC_LIB_LIST} X* ssl crypto" |
236 | 236 | ;; |