[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] [SPAM] slab.h / malloc.h



Hi,

many OpenBT driver files contain the following code snippet:

#define __NO_VERSION__ /* don't define kernel_version in module.h */

#ifdef __KERNEL__
#include <linux/bluetooth/sysdep-2.1.h>
#if LINUX_VERSION_CODE >= 0x20200
#include <linux/slab.h>
#else
#include <linux/malloc.h>
#endif

Well, on my 2.4.18 system, malloc.h is still included, because the LINUX_VERSION_CODE test
does not really work. I think the problem is the __NO_VERSION__ definition.

Can anybody fix this ?

-- 
-------------------------------------------------------------------------

                             _/_/_/_/   Matthias Fuchs
                            _/_/_/_/   Dipl.-Ing.
                           _/_/_/_/   matthias.fuchs@xxxxxxx.com

       _/_/_/   _/_/_/_/_/_/_/      esd electronic system design gmbh
     _/   _/  _/             _/    Vahrenwalder Str. 207
    _/   _/    _/_/_/   _/   _/   D-30165 Hannover
    _/             _/  _/   _/   Phone: +49-511-37298-0
     _/_/_/_/_/_/_/   _/_/_/    Fax:   +49-511-37298-68

-------------------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com