pkgsrc/devel/libblkid/patches/patch-ac
markd 5efb745928 Initial import libblkid 2.18
The libblkid library is used to identify block devices (disks) as to their
content (e.g. filesystem type) as well as extracting additional information
such as filesystem labels/volume names, unique identifiers/serial numbers, etc.
A common use is to allow use of LABEL= and UUID= tags instead of hard-coding
specific block device names into configuration files.

From util-linux-ng.
2011-01-08 20:43:38 +00:00

27 lines
747 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2011/01/08 20:43:39 markd Exp $
Byte order defines for other than linux
--- include/bitops.h.orig 2010-02-04 11:53:56.000000000 +0000
+++ include/bitops.h
@@ -2,7 +2,20 @@
#define BITOPS_H
#include <stdint.h>
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#include <sys/endian.h>
+#define __BYTE_ORDER _BYTE_ORDER
+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#define __BIG_ENDIAN _BIG_ENDIAN
+#elif defined(__APPLE__)
+#include <machine/endian.h>
+#include <libkern/OSByteOrder.h>
+#define __BYTE_ORDER BYTE_ORDER
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#define __BIG_ENDIAN BIG_ENDIAN
+#else
#include <endian.h>
+#endif
/*
* Bit map related macros. Usually provided by libc.