Changeset 12682


Ignore:
Timestamp:
2008-09-24T15:27:46+02:00 (8 years ago)
Author:
nico
Message:

fix button-hotplug build on kernel versions where BIT_MASK is not defined (< 2.6.24)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/button-hotplug/src/button-hotplug.c

    r11937 r12682  
    4747#define BH_ERR(fmt, args...) printk(KERN_ERR "%s: " fmt, DRV_NAME, ##args ) 
    4848 
     49#ifndef BIT_MASK 
     50#define BIT_MASK(nr)            (1UL << ((nr) % BITS_PER_LONG)) 
     51#endif 
     52 
    4953struct bh_priv { 
    5054        unsigned long           seen[BH_BTN_COUNT]; 
Note: See TracChangeset for help on using the changeset viewer.