Re: incomplete type

Pavel Roskin <[email protected]> Tue, 03 May 2011 12:10:18 -0400
Newsgroups gmane.linux.drivers.madwifi.user
Message-ID <[email protected]>
On 05/02/2011 09:07 PM, Hassan Elmadi wrote:
> Hi all,
>
> I'm trying to generate a *struct ieee80211vap* by calling *malloc*() and get
> compile errors (I'm using gcc) like:

Please post messages in plain text without HTML.  Not only does it save 
the bandwidth, but it also makes your message unambiguous, since what 
you write is what others see.

After checking the HTML portion of your e-mail I found that you actually 
tried to use malloc().  "*malloc*" could mean that you tried various 
functions with "malloc" in it, such as kmalloc().

libc functions are not available in the kernel code.  Please use the 
calls available in the kernel.  kmalloc() is the kernel equivalent of 
malloc().

> I believe these compile errors are due to *struct sockaddr* being defined
> under this macro:
>
> #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__<  2)

I don't think anything needs fixing.

-- 
Regards,
Pavel Roskin

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd