[PATCH]: fix FTBFS on Debian GNU/kFreeBSD

Jouni Malinen j
Wed May 21 00:15:26 PDT 2008

On Sun, May 11, 2008 at 11:13:32PM +1000, Kel Modderman wrote:

> A patch was submitted by Emmanuel Bouthenot to the Debian BTS to allow the
> wpasupplicant package to be built on Debian GNU/kFreeBSD.
>   http://bugs.debian.org/480572

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 Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list