Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/lvm2/dist Use sys/endian.h for bswapXX.
details: https://anonhg.NetBSD.org/src/rev/5a266f69e3e8
branches: trunk
changeset: 326841:5a266f69e3e8
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 20 02:09:58 2014 +0000
description:
Use sys/endian.h for bswapXX.
diffstat:
external/gpl2/lvm2/dist/include/xlate.h | 7 ++++++-
external/gpl2/lvm2/dist/lib/mm/xlate.h | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r d1dc2208231d -r 5a266f69e3e8 external/gpl2/lvm2/dist/include/xlate.h
--- a/external/gpl2/lvm2/dist/include/xlate.h Thu Feb 20 02:09:28 2014 +0000
+++ b/external/gpl2/lvm2/dist/include/xlate.h Thu Feb 20 02:09:58 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlate.h,v 1.1.1.1 2008/12/22 00:18:44 haad Exp $ */
+/* $NetBSD: xlate.h,v 1.2 2014/02/20 02:09:58 joerg Exp $ */
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
@@ -21,6 +21,11 @@
#ifdef linux
# include <endian.h>
# include <byteswap.h>
+#elif defined(__NetBSD__)
+# include <sys/endian.h>
+# define bswap_16(x) bswap16(x)
+# define bswap_32(x) bswap32(x)
+# define bswap_64(x) bswap64(x)
#else
# include <machine/endian.h>
# define bswap_16(x) (((x) & 0x00ffU) << 8 | \
diff -r d1dc2208231d -r 5a266f69e3e8 external/gpl2/lvm2/dist/lib/mm/xlate.h
--- a/external/gpl2/lvm2/dist/lib/mm/xlate.h Thu Feb 20 02:09:28 2014 +0000
+++ b/external/gpl2/lvm2/dist/lib/mm/xlate.h Thu Feb 20 02:09:58 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlate.h,v 1.1.1.1 2008/12/22 00:18:13 haad Exp $ */
+/* $NetBSD: xlate.h,v 1.2 2014/02/20 02:09:58 joerg Exp $ */
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
@@ -21,6 +21,11 @@
#ifdef linux
# include <endian.h>
# include <byteswap.h>
+#elif defined(__NetBSD__)
+# include <sys/endian.h>
+# define bswap_16(x) bswap16(x)
+# define bswap_32(x) bswap32(x)
+# define bswap_64(x) bswap64(x)
#else
# include <machine/endian.h>
# define bswap_16(x) (((x) & 0x00ffU) << 8 | \
Home |
Main Index |
Thread Index |
Old Index