mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 03:44:13 -04:00
23 lines
695 B
Plaintext
23 lines
695 B
Plaintext
$NetBSD: patch-aa,v 1.2 2012/02/16 15:00:58 hans Exp $
|
|
|
|
--- src/misc/compat.h.orig 2005-12-13 16:46:43.000000000 +0000
|
|
+++ src/misc/compat.h
|
|
@@ -70,7 +70,16 @@
|
|
#if defined(_WINDOZE_) || defined(_CYGWIN_)
|
|
#define LITTLE__ENDIAN
|
|
#else
|
|
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__MACH__) || defined(__NetBSD__)
|
|
+#if defined(__sun)
|
|
+#include <sys/byteorder.h>
|
|
+#ifdef _BIG_ENDIAN
|
|
+#define BIG__ENDIAN
|
|
+#else
|
|
+#define LITTLE__ENDIAN
|
|
+#endif
|
|
+#elif defined(__DragonFly__)
|
|
+#include <sys/endian.h>
|
|
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__MACH__) || defined(__NetBSD__)
|
|
#include <machine/endian.h>
|
|
#if BYTE_ORDER == LITTLE_ENDIAN
|
|
#define LITTLE__ENDIAN
|