pkgsrc-ng/databases/pgbouncer/patches/patch-lib_usual_endian_h
2013-09-26 17:14:40 +02:00

25 lines
482 B
Plaintext

$NetBSD: patch-lib_usual_endian_h,v 1.1 2011/12/21 08:29:05 dholland Exp $
Avoid trying to redefine bswap16/32/64 when on NetBSD.
--- lib/usual/endian.h~ 2011-04-29 13:07:43.000000000 +0000
+++ lib/usual/endian.h
@@ -42,6 +42,8 @@
* @{
*/
+#ifndef __NetBSD__ /* already in sys/endian.h */
+
#ifndef bswap16
#ifdef bswap_16
#define bswap16(x) bswap_16(x)
@@ -80,6 +82,8 @@ static inline uint64_t bswap64(uint64_t
#endif
#endif
+#endif /* NetBSD */
+
/* @} */
/**