X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0c8c774424e6e8a95187cdd254189a7e7ab05738..35d89687990cda088db9ceb3e7abef61d6ac11a0:/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;