mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
17 lines
557 B
Plaintext
17 lines
557 B
Plaintext
$NetBSD: patch-ai,v 1.1.1.1 2010/12/15 03:22:45 jnemeth Exp $
|
|
|
|
--- include/asterisk/endian.h.orig 2008-10-09 10:51:25.000000000 -0700
|
|
+++ include/asterisk/endian.h
|
|
@@ -31,6 +31,11 @@
|
|
#ifndef __BYTE_ORDER
|
|
#ifdef __linux__
|
|
#include <endian.h>
|
|
+#elif defined(__DragonFly__)
|
|
+#include <sys/endian.h>
|
|
+#define __BYTE_ORDER BYTE_ORDER
|
|
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
|
|
+#define __BIG_ENDIAN BIG_ENDIAN
|
|
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
|
#if defined(__OpenBSD__)
|
|
#include "asterisk/compat.h"
|