Re: [Madwifi-users] incomplete type
Status: Beta
Brought to you by:
otaku
From: Pavel R. <pr...@gn...> - 2011-05-03 16:10:51
|
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 |