Module Name: src
Committed By: joerg
Date: Thu Feb 20 02:09:58 UTC 2014
Modified Files:
src/external/gpl2/lvm2/dist/include: xlate.h
src/external/gpl2/lvm2/dist/lib/mm: xlate.h
Log Message:
Use sys/endian.h for bswapXX.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl2/lvm2/dist/include/xlate.h
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl2/lvm2/dist/lib/mm/xlate.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl2/lvm2/dist/include/xlate.h
diff -u src/external/gpl2/lvm2/dist/include/xlate.h:1.1.1.1 src/external/gpl2/lvm2/dist/include/xlate.h:1.2
--- src/external/gpl2/lvm2/dist/include/xlate.h:1.1.1.1 Mon Dec 22 00:18:44 2008
+++ src/external/gpl2/lvm2/dist/include/xlate.h Thu Feb 20 02:09:58 2014
@@ -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 | \
Index: src/external/gpl2/lvm2/dist/lib/mm/xlate.h
diff -u src/external/gpl2/lvm2/dist/lib/mm/xlate.h:1.1.1.1 src/external/gpl2/lvm2/dist/lib/mm/xlate.h:1.2
--- src/external/gpl2/lvm2/dist/lib/mm/xlate.h:1.1.1.1 Mon Dec 22 00:18:13 2008
+++ src/external/gpl2/lvm2/dist/lib/mm/xlate.h Thu Feb 20 02:09:58 2014
@@ -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 | \