Ticket #431: boinc-openbsd-compile-fix.patch
File boinc-openbsd-compile-fix.patch, 1.2 KB (added by , 17 years ago) |
---|
-
lib/util.C
43 43 #include <sys/types.h> 44 44 #include <sys/stat.h> 45 45 #include <sys/wait.h> 46 #include <signal.h> 47 46 48 #include <fcntl.h> 47 49 #include <grp.h> 48 50 #include <errno.h> -
client/log_flags.C
29 29 #include <cstring> 30 30 #endif 31 31 32 #ifdef HAVE_UNISTD_H 33 #include <unistd.h> 34 #endif 35 32 36 #include "error_numbers.h" 33 37 #include "common_defs.h" 34 38 #include "file_names.h" -
client/hostinfo_unix.C
644 644 int mem_size; 645 645 getsysinfo( GSI_PHYSMEM, (caddr_t) &mem_size, sizeof( mem_size)); 646 646 m_nbytes = 1024.* (double)mem_size; 647 #elif defined(HW_PHYSMEM) 648 mib[0] = CTL_HW; 649 int mem_size; 650 mib[1] = HW_PHYSMEM; 651 len = sizeof(mem_size); 652 sysctl(mib, 2, &mem_size, &len, NULL, 0); 653 m_nbytes = mem_size; 647 654 #else 648 655 #error Need to specify a method to get memory size 649 656 #endif