$NetBSD: patch-aa,v 1.1 2005/12/07 19:33:03 joerg Exp $ --- include/ogle_endian.h.orig 2005-12-07 19:00:42.000000000 +0000 +++ include/ogle_endian.h @@ -42,11 +42,11 @@ # include # define FROM_BE_16(x) (bswap16(x)) # define FROM_BE_32(x) (bswap32(x)) -#elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__) +#elif defined(HAVE_SYS_ENDIAN_H) && !defined(__FreeBSD__) && !defined(__DragonFly__) # include # define FROM_BE_16(x) (swap16(x)) # define FROM_BE_32(x) (swap32(x)) -#elif defined(HAVE_SYS_ENDIAN_H) && defined(__FreeBSD__) && __FreeBSD_version >= 470000 +#elif defined(HAVE_SYS_ENDIAN_H) && ((defined(__FreeBSD__) && __FreeBSD_version >= 470000) || defined(__DragonFly__)) # include # define FROM_BE_16(x) (be16toh(x)) # define FROM_BE_32(x) (be32toh(x))