[core] Fix compilation on osx and freebsd+waf

personal/stbuehler/wip
Thomas Porzelt 13 years ago
parent 20c3e7d6ad
commit 15c89fc606

@ -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)

@ -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