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

File boinc-openbsd-compile-fix.patch, 1.2 KB (added by tj, 17 years ago)

Openbsd Compile Fix

  • lib/util.C

     
    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

     
    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

     
    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