blob: 1afdfb40895f1085a7bfba4727892e4ce357013f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-lib_usual_endian_h,v 1.2 2014/05/13 14:18:50 fhajny Exp $
Avoid trying to redefine bswap16/32/64 when on NetBSD.
--- lib/usual/endian.h.orig 2011-11-29 15:40:56.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 */
+
/* @} */
/**
|