incomplete type

Hassan Elmadi <[email protected]> Mon, 2 May 2011 18:07:01 -0700
Newsgroups gmane.linux.drivers.madwifi.user
Message-ID <[email protected]>
Hi all,

I'm trying to generate a *struct ieee80211vap* by calling *malloc*() and get
compile errors (I'm using gcc) like:

 /usr/include/linux/if.h:165: error: field 'ifru_addr' has incomplete type

ifru_addr is of type *struct sockaddr*, which is defined in socket.h.

I believe these compile errors are due to *struct sockaddr* being defined
under this macro:

#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)

Am I right and how can I fix this?

Thanks.

------------------------------------------------------------------------------
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

_______________________________________________
Madwifi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-users