diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2015-01-15 14:21:07 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2015-01-15 17:09:26 +0900 |
commit | 04fd20f5a06355fc0afe110337ccb9dc7445ad1d (patch) | |
tree | d4e723fb9a68f1a75f7bf5a38d6ebb12b43f3a1f | |
parent | 4d16440882cdff9a2a73346a2de2a1d2d1bddd36 (diff) | |
download | libdevice-node-tizen_3.0_ivi.tar.gz libdevice-node-tizen_3.0_ivi.tar.bz2 libdevice-node-tizen_3.0_ivi.zip |
device-node: Fix build under 64-bit architecturetizen_3.0_ivi_releasesubmit/tizen_ivi/20150116.111111submit/tizen/20150115.095403accepted/tizen/wearable/20150116.010358accepted/tizen/tv/20150116.010705accepted/tizen/mobile/20150116.011319accepted/tizen/ivi/20150116.082010accepted/tizen/common/20150115.180507tizen_3.0_ivitizen_3.0.2015.q1_commontizen_3.0.2014.q4_common
A problem of int to pointer cast was raising
an error when building for 64 bits archs.
Change-Id: I5e9aa7b850370440c11e1c5ee3e58c381a1d71fc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
-rw-r--r-- | devices/led.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/devices/led.c b/devices/led.c index becf30e..faaa2fd 100644 --- a/devices/led.c +++ b/devices/led.c @@ -39,7 +39,11 @@ static int led_set_prop(int prop, int val) case PROP_LED_BRIGHTNESS: return PLUGIN_SET(leds_torch_brightness, val); case PROP_LED_IR_COMMAND: +#if __WORDSIZE == 64 + return -ENOTSUP; +#else return PLUGIN_SET(irled_control, (char*)val); +#endif case PROP_LED_HARDKEY: return PLUGIN_SET(hardkey_backlight, val); } |