diff options
author | Al Poole <netstar@gmail.com> | 2018-02-24 18:40:24 +0000 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2018-03-02 11:14:08 -0500 |
commit | e8132e87237ed0e6974a23142c46c26941f7a7b4 (patch) | |
tree | 650c2c692a50ecc1f56ad9551efb9bb4ffc5f2b1 | |
parent | sysinfo: fix cpuclock for BSD. (diff) | |
download | enlightenment-e8132e87237ed0e6974a23142c46c26941f7a7b4.tar.gz |
sysinfo: fix linux build.
-rw-r--r-- | src/modules/sysinfo/cpuclock/cpuclock_config.c | 2 | ||||
-rw-r--r-- | src/modules/sysinfo/meson.build | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sysinfo/cpuclock/cpuclock_config.c b/src/modules/sysinfo/cpuclock/cpuclock_config.c index e6964fa20..5477fb84a 100644 --- a/src/modules/sysinfo/cpuclock/cpuclock_config.c +++ b/src/modules/sysinfo/cpuclock/cpuclock_config.c @@ -590,7 +590,7 @@ cpuclock_configure(Instance *inst) frequency / 1000000.); #endif 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); evas_object_smart_callback_add(o, "changed", _frequency_changed, cc); evas_object_show(o); diff --git a/src/modules/sysinfo/meson.build b/src/modules/sysinfo/meson.build index ac9dc9820..257f3ce2c 100644 --- a/src/modules/sysinfo/meson.build +++ b/src/modules/sysinfo/meson.build @@ -57,7 +57,7 @@ if get_option(m) == true suid_exes += join_paths(_dir_bin, 'cpuclock_sysfs') endif -if get_option(m) == true +if get_option(m) == true and host_os.startswith('freebsd') or host_os.startswith('dragonfly') executable('cpuclock_sysctl', 'cpuclock/cpuclock_sysctl.c', c_args : suid_cflags, |