|
|
@@ -1,6 +1,27 @@
|
|
|
+Index: base/gsropt.h
|
|
|
+--- base/gsropt.h.orig 2011-03-11 06:45:19.000000000 +0100
|
|
|
++++ base/gsropt.h 2011-04-02 22:59:43.000000000 +0200
|
|
|
+@@ -379,17 +379,6 @@
|
|
|
+
|
|
|
+ #elif defined(__GNUC__) /* Are we using GCC? */
|
|
|
+
|
|
|
+-#ifdef __i386__ /* Are we on an x86? */
|
|
|
+-#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
|
|
+-#if GCC_VERSION >= 40300 /* Modern enough to have byteswap intrinsics? */
|
|
|
+-
|
|
|
+-#include <byteswap.h>
|
|
|
+-
|
|
|
+-#define ENDIAN_SWAP_INT bswap_32
|
|
|
+-
|
|
|
+-#endif /* GCC >= 4.3 */
|
|
|
+-#endif /* x86 or later */
|
|
|
+-
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #endif /* gsropt_INCLUDED */
|
|
|
Index: base/stdint_.h
|
|
|
--- base/stdint_.h.orig 2010-07-30 13:03:27.000000000 +0200
|
|
|
-+++ base/stdint_.h 2010-09-18 10:08:04.000000000 +0200
|
|
|
++++ base/stdint_.h 2011-04-02 22:55:44.000000000 +0200
|
|
|
@@ -68,6 +68,13 @@
|
|
|
typedef unsigned long long uint64_t;
|
|
|
# define STDINT_TYPES_DEFINED
|
|
|
@@ -15,24 +36,3 @@ Index: base/stdint_.h
|
|
|
/* other archs may want to add defines here,
|
|
|
or use the fallbacks in std.h */
|
|
|
#endif
|
|
|
-Index: base/unix-gcc.mak
|
|
|
---- base/unix-gcc.mak.orig 2010-07-07 19:47:09.000000000 +0200
|
|
|
-+++ base/unix-gcc.mak 2010-09-18 10:08:04.000000000 +0200
|
|
|
-@@ -250,7 +250,7 @@
|
|
|
- # gcc to accept ANSI-style function prototypes and function definitions.
|
|
|
- XCFLAGS=-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"$(gssharedir)\"
|
|
|
-
|
|
|
--CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
|
|
|
-+CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS) $(XINCLUDE)
|
|
|
-
|
|
|
- # Define platform flags for ld.
|
|
|
- # SunOS 4.n may need -Bstatic.
|
|
|
-@@ -261,7 +261,7 @@
|
|
|
- # XLDFLAGS can be set from the command line.
|
|
|
- XLDFLAGS=
|
|
|
-
|
|
|
--LDFLAGS=$(XLDFLAGS)
|
|
|
-+LDFLAGS=$(XLDFLAGS) $(XLIBDIRS)
|
|
|
-
|
|
|
- # Define any extra libraries to link into the executable.
|
|
|
- # ISC Unix 2.2 wants -linet.
|