From: Jiyoung Yun Date: Thu, 15 Jan 2015 05:21:07 +0000 (+0900) Subject: device-node: Fix build under 64-bit architecture X-Git-Tag: submit/tizen/20150115.095403^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04fd20f5a06355fc0afe110337ccb9dc7445ad1d;p=platform%2Fcore%2Fsystem%2Flibdevice-node.git device-node: Fix build under 64-bit architecture 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 --- 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); }