forked from enlightenment/enlightenment
sysinfo: fix linux build.
This commit is contained in:
parent
e33a14b7e8
commit
46764d5975
|
@ -590,7 +590,7 @@ cpuclock_configure(Instance *inst)
|
||||||
frequency / 1000000.);
|
frequency / 1000000.);
|
||||||
#endif
|
#endif
|
||||||
elm_object_text_set(o, buf);
|
elm_object_text_set(o, buf);
|
||||||
evas_object_data_set(o, "frequency", (void *) (int) frequency);
|
evas_object_data_set(o, "frequency", (void *) (long) frequency);
|
||||||
elm_box_pack_end(box, o);
|
elm_box_pack_end(box, o);
|
||||||
evas_object_smart_callback_add(o, "changed", _frequency_changed, cc);
|
evas_object_smart_callback_add(o, "changed", _frequency_changed, cc);
|
||||||
evas_object_show(o);
|
evas_object_show(o);
|
||||||
|
|
|
@ -57,7 +57,7 @@ if get_option(m) == true
|
||||||
suid_exes += join_paths(_dir_bin, 'cpuclock_sysfs')
|
suid_exes += join_paths(_dir_bin, 'cpuclock_sysfs')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option(m) == true
|
if get_option(m) == true and host_os.startswith('freebsd') or host_os.startswith('dragonfly')
|
||||||
executable('cpuclock_sysctl',
|
executable('cpuclock_sysctl',
|
||||||
'cpuclock/cpuclock_sysctl.c',
|
'cpuclock/cpuclock_sysctl.c',
|
||||||
c_args : suid_cflags,
|
c_args : suid_cflags,
|
||||||
|
|
Loading…
Reference in New Issue