SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
graphics/s10sh/patches/patch-bytesex_h
Normal file
23
graphics/s10sh/patches/patch-bytesex_h
Normal file
|
@ -0,0 +1,23 @@
|
|||
Use endian.h instead of whitelisting platforms.
|
||||
|
||||
--- bytesex.h.orig Tue Mar 13 14:46:18 2001
|
||||
+++ bytesex.h Fri Dec 30 19:05:26 2016
|
||||
@@ -3,15 +3,10 @@
|
||||
#ifndef S10SH_BYTESEX_H
|
||||
#define S10SH_BYTESEX_H
|
||||
|
||||
-#if defined(__i386__) \
|
||||
- || defined(__alpha__) \
|
||||
- || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
|
||||
+#include <endian.h>
|
||||
+#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#define BYTE_ORDER_LITTLE_ENDIAN
|
||||
-#elif defined(__mc68000__) \
|
||||
- || defined (__sparc__) \
|
||||
- || defined (__sparc) \
|
||||
- || defined (__PPC__) \
|
||||
- || (defined(__mips__) && (defined(MIPSEB) || defined (__MIPSEB__)))
|
||||
+#elif BYTE_ORDER == BIG_ENDIAN
|
||||
#define BYTE_ORDER_BIG_ENDIAN
|
||||
#else
|
||||
# error can not find the byte order for this architecture, fix bytesex.h
|
Loading…
Add table
Add a link
Reference in a new issue