Browse Source

[core] Fix compilation on osx and freebsd+waf

personal/stbuehler/wip
Thomas Porzelt 12 years ago
parent
commit
15c89fc606
  1. 2
      src/common/sys_memory.c
  2. 8
      src/common/wscript

2
src/common/sys_memory.c

@ -80,7 +80,7 @@ gsize li_memory_usage(void) {
if (KERN_SUCCESS != task_info(mach_task_self(), TASK_BASIC_INFO, (task_info_t) &tbinfo, &cnt))
return 0;
return binfo.resident_size;
return tbinfo.resident_size;
}
#elif defined(LIGHTY_OS_SOLARIS)

8
src/common/wscript

@ -10,6 +10,8 @@ License and Copyright: see COPYING file
import Options, sys, Utils
def configure(conf):
if sys.platform.startswith('freebsd'):
conf.check(lib='kvm', uselib_store='kvm', mandatory=True)
pass
@ -29,11 +31,15 @@ def build(bld):
utils.c
waitqueue.c
'''
if sys.platform.startswith('freebsd'):
libs = ['kvm']
else:
libs = []
libcommon = bld.new_task_gen(
features = 'cc cshlib',
source = source,
defines = ['HAVE_CONFIG_H=1'],
uselib = ['glib', 'gthread', 'gmodule', 'ev'],
uselib = ['glib', 'gthread', 'gmodule', 'ev'] + libs,
includes = ['#/include/'],
target = 'common')

Loading…
Cancel
Save