Ticket #431: boinc-openbsd-compile-fix.patch

File boinc-openbsd-compile-fix.patch, 1.2 kB (added by tj, 1 year ago)

Openbsd Compile Fix

  • lib/util.C

    old new  
    4343#include <sys/types.h> 
    4444#include <sys/stat.h> 
    4545#include <sys/wait.h> 
     46#include <signal.h> 
     47 
    4648#include <fcntl.h> 
    4749#include <grp.h> 
    4850#include <errno.h> 
  • client/log_flags.C

    old new  
    2929#include <cstring> 
    3030#endif 
    3131 
     32#ifdef HAVE_UNISTD_H 
     33#include <unistd.h> 
     34#endif 
     35 
    3236#include "error_numbers.h" 
    3337#include "common_defs.h" 
    3438#include "file_names.h" 
  • client/hostinfo_unix.C

    old new  
    644644    int mem_size; 
    645645    getsysinfo( GSI_PHYSMEM, (caddr_t) &mem_size, sizeof( mem_size)); 
    646646    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; 
    647654#else 
    648655#error Need to specify a method to get memory size 
    649656#endif 

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.