mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Properly fix the latest problem with byteorder.h by removing obsolete
patches.
This commit is contained in:
parent
b987111aaa
commit
89f5525fba
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267513
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= rxvt-unicode
|
||||
PORTVERSION= 9.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= . Attic
|
||||
|
@ -1,18 +0,0 @@
|
||||
--- ./src/rxvtutil.C.orig Mon Aug 16 01:11:46 2004
|
||||
+++ ./src/rxvtutil.C Tue Aug 17 23:15:04 2004
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "rxvtutil.h"
|
||||
|
||||
+#ifdef HAVE_SYS_BYTEORDER_H
|
||||
class byteorder byteorder;
|
||||
|
||||
byteorder::byteorder ()
|
||||
@@ -20,6 +21,6 @@
|
||||
|
||||
e = w.u;
|
||||
}
|
||||
-
|
||||
+#endif
|
||||
|
||||
|
@ -1,29 +0,0 @@
|
||||
--- ./src/background.C.orig 2010-12-03 22:08:19.000000000 +0100
|
||||
+++ ./src/background.C 2010-12-29 12:27:37.000000000 +0100
|
||||
@@ -56,6 +56,10 @@
|
||||
#define TIMING_TEST_PRINT_RESULT(id) do {} while (0)
|
||||
#endif
|
||||
|
||||
+#if defined( __FreeBSD__)
|
||||
+# include <sys/endian.h>
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* Pixmap geometry string interpretation :
|
||||
* Each geometry string contains zero or one scale/position
|
||||
@@ -1596,7 +1600,15 @@
|
||||
rgba low;
|
||||
rgba high;
|
||||
int i;
|
||||
+#if defined(HAVE_SYS_BYTEORDER_H)
|
||||
int host_byte_order = byteorder.big_endian () ? MSBFirst : LSBFirst;
|
||||
+#else
|
||||
+# if _BYTE_ORDER == _LITTLE_ENDIAN
|
||||
+ int host_byte_order = LSBFirst;
|
||||
+# else
|
||||
+ int host_byte_order = MSBFirst;
|
||||
+# endif
|
||||
+#endif
|
||||
|
||||
if (visual->c_class != TrueColor || ximage->format != ZPixmap) return;
|
||||
|
@ -1,18 +0,0 @@
|
||||
--- src/rxvtutil.h.orig 2010-08-25 04:07:15.000000000 +0200
|
||||
+++ src/rxvtutil.h 2010-12-29 12:29:26.000000000 +0100
|
||||
@@ -40,6 +40,7 @@
|
||||
# define THROW(x) throw x
|
||||
#endif
|
||||
|
||||
+#if defined(HAVE_SYS_BYTEORDER_H)
|
||||
extern class byteorder {
|
||||
static unsigned int e; // at least 32 bits
|
||||
public:
|
||||
@@ -50,6 +51,7 @@
|
||||
static bool little_endian () { return e == 0x44332211; };
|
||||
static bool vax () { return e == 0x44332211; };
|
||||
} byteorder;
|
||||
+#endif
|
||||
|
||||
// various utility functions
|
||||
template<typename T, typename U> static inline T min (T a, U b) { return a < (T)b ? a : (T)b; }
|
Loading…
Reference in New Issue
Block a user