mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-10-04 01:20:44 -04:00
36 lines
782 B
Plaintext
36 lines
782 B
Plaintext
$NetBSD: patch-ae,v 1.3 2012/02/15 19:43:51 hans Exp $
|
|
|
|
--- include/local.h.orig 2008-10-29 08:42:10.000000000 -0400
|
|
+++ include/local.h
|
|
@@ -28,7 +28,20 @@
|
|
#include <string.h>
|
|
#include <fcntl.h>
|
|
#include <assert.h>
|
|
+#if defined(__NetBSD__) || defined(__DragonFly__)
|
|
+#include <sys/endian.h>
|
|
+#elif defined(__sun)
|
|
+#include <sys/byteorder.h>
|
|
+#define __LITTLE_ENDIAN 1234
|
|
+#define __BIG_ENDIAN 4321
|
|
+#ifdef _BIG_ENDIAN
|
|
+#define __BYTE_ORDER __BIG_ENDIAN
|
|
+#else
|
|
+#define __BYTE_ORDER __LITTLE_ENDIAN
|
|
+#endif
|
|
+#else
|
|
#include <endian.h>
|
|
+#endif
|
|
#include <stdarg.h>
|
|
#include <sys/poll.h>
|
|
#include <errno.h>
|
|
@@ -182,7 +195,9 @@ extern snd_lib_error_handler_t snd_err_m
|
|
|
|
/*
|
|
*/
|
|
+#ifndef __sun
|
|
#define HAVE_GNU_LD
|
|
+#endif
|
|
#define HAVE_ELF
|
|
#define HAVE_ASM_PREVIOUS_DIRECTIVE
|
|
|