X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0c8c774424e6e8a95187cdd254189a7e7ab05738..5d422a4b0e275d6c2554d7394df161e602c57184:/package/button-hotplug/src/button-hotplug.c diff --git a/package/button-hotplug/src/button-hotplug.c b/package/button-hotplug/src/button-hotplug.c index f76b9277f..4bdf36435 100644 --- a/package/button-hotplug/src/button-hotplug.c +++ b/package/button-hotplug/src/button-hotplug.c @@ -46,6 +46,10 @@ #define BH_ERR(fmt, args...) printk(KERN_ERR "%s: " fmt, DRV_NAME, ##args ) +#ifndef BIT_MASK +#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) +#endif + struct bh_priv { unsigned long seen[BH_BTN_COUNT]; struct input_handle handle;