X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fbutton-hotplug%2Fsrc%2Fbutton-hotplug.c;h=4bdf36435af9c735b0ccbd0b82266c95e1334525;hb=a328633ffe6558e77dd19460b83b2b731e9bebdc;hp=f76b9277fdcc89ba58b0de5c93aa6229d19674b5;hpb=0c8c774424e6e8a95187cdd254189a7e7ab05738;p=openwrt-10.03%2F.git 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;