$NetBSD: patch-as,v 1.1 2008/02/28 08:14:41 jlam Exp $ --- cf/roken-frag.m4.orig 2008-01-24 08:13:43.000000000 -0500 +++ cf/roken-frag.m4 @@ -243,12 +243,18 @@ AC_FOREACH([rk_func], [asprintf vasprint rk_func)]) AC_FIND_FUNC_NO_LIBS(bswap16,, -[#ifdef HAVE_SYS_BSWAP_H +[#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_BSWAP_H #include #endif],0) AC_FIND_FUNC_NO_LIBS(bswap32,, -[#ifdef HAVE_SYS_BSWAP_H +[#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_BSWAP_H #include #endif],0)