--- - branch: MAIN date: Fri Mar 6 19:05:11 UTC 2009 files: - new: '1.39' old: '1.38' path: src/usr.sbin/pwd_mkdb/pwd_mkdb.c pathrev: src/usr.sbin/pwd_mkdb/pwd_mkdb.c@1.39 type: modified id: 20090306T190511Z.4670c84fe5fac004f495d9ccfa66e210aa8ce6f6 log: | Replace local swap16, swap32, and swap64 inline functions with the NetBSD conventional bswap16, bswap32, and bswap64 functions or macros. In a non-tools build, include and to get definitions of these functions. In a tools build, rely on the functions or macros being provided by nbtool_config.h, but don't incluce (which might not exist in a cross build). This should address a problem building on OpenBSD, which has swap16, swap32, and swap64 macros that conflicted with the local definitions. The problem was reported by Alexander Bluhm, but this patch is quite dufferent form the one he suggested. module: src subject: 'CVS commit: src/usr.sbin/pwd_mkdb' unixtime: '1236366311' user: apb