mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
25 lines
482 B
Plaintext
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 */
|
|
+
|
|
/* @} */
|
|
|
|
/**
|