[PATCH]: fix FTBFS on Debian GNU/kFreeBSD

Kel Modderman kel
Fri May 23 01:30:42 PDT 2008


On Wednesday 21 May 2008 17:15:26 Jouni Malinen wrote:
> What kind of include files does the Debian GNU/kFreeBSD use? The
> proposed changes are not needed in my FreeBSD 6.0 -based toolchain and
> they actually break the FreeBSD build.. If that is not identical to the
> native FreeBSD, I think there will need to be a different define from
> __FreeBSD__ for selecting these options..
> 
> > +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
> > +#include "bsd/string.h"
> > +#endif
> 
> Does not exist at least in my toolchain (cross compiler on Linux, but
> header files copied from FreeBSD 6.0 system).
> 
> > +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
> > +#include <net/bpf.h>
> > +#endif
> 
> Exists, but was not needed in my test.
> 
> > -#ifdef __linux__
> > +#if defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
> >  #include <endian.h>
> >  #include <byteswap.h>
> > -#endif /* __linux__ */
> > +#endif /* __linux__ / GNU/kfreebsd */
> 
> Neither of these exist in FreeBSD..
> 

Jouni, thanks for the feedback.

Emmanuel, could you please take the time to look and comment on these issues
before they can be included in a released package?

Thanks, Kel.



More information about the Hostap mailing list