Ignore:
Timestamp:
Feb 17, 2007, 9:47:38 PM (18 years ago)
Author:
rainer
Message:

Slightly improved fix for samhain_hide module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/samhain_hide.c

    r90 r91  
    119119/* The configure options (#defines) for the Kernel
    120120 */
    121 #if SH_KERNEL_NUMERIC >= 206019
     121/* 2.6.19 (((2) << 16) + ((6) << 8) + (19)) */
     122#define SH_KERNEL_MIN 132627
     123
     124#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    122125#include <linux/autoconf.h>
    123126#else
     
    169172#include <linux/smp_lock.h>
    170173
    171 #if SH_KERNEL_NUMERIC >= 206019
     174#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    172175#include <linux/mutex.h>
    173176#endif
     
    783786    spinlock_t * modlist_lock = (spinlock_t * ) SH_MODLIST_LOCK;
    784787#endif
    785 #if SH_KERNEL_NUMERIC >= 206019
     788#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    786789    struct mutex * module_mutex = (struct mutex *) SH_MODLIST_MUTEX;
    787790#endif
     
    789792    struct module *mod;
    790793
    791 #if SH_KERNEL_NUMERIC >= 206019
     794#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    792795    mutex_lock(module_mutex);
    793796#endif
     
    807810#endif
    808811    }
    809 #if SH_KERNEL_NUMERIC >= 206019
     812#if SH_KERNEL_NUMERIC >= SH_KERNEL_MIN
    810813      mutex_unlock(module_mutex);
    811814#endif
Note: See TracChangeset for help on using the changeset viewer.