Search Linux Wireless

Re: [PATCH] wireless.h: improve userland include-ability

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

 



On Wed, 2008-06-04 at 08:47 -0700, David Miller wrote:
> From: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
> Date: Wed, 04 Jun 2008 16:26:12 +0100
> 
> > -#ifndef __KERNEL_STRICT_NAMES
> > +#if defined(__KERNEL__) || defined(_LOOSE_KERNEL_NAMES)
> 
> This reminds me that I noticed recently that unifdef doesn't
> handle multiple conditions in an #if test involving
> __KERNEL__ properly.  So, for example, for something else
> in wireless.h I was working on I had to use:
> 
> #ifdef __KERNEL__
> #ifdef CONFIG_COMPAT
> 
> instead of the more usual:
> 
> #if defined(__KERNEL__) && defined(CONFIG_COMPAT)
> 
> otherwise I'd get check headers errors during the build.

Yeah; that's one of the main reasons it hasn't been done yet.

-- 
dwmw2

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux