Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 21 years ago
parent
commit
0051639617
2 changed files with 13 additions and 23 deletions
  1. +13
    -0
      package/stf/prboom/disable-memory-info.patch
  2. +0
    -23
      package/stf/prboom/linux-asm-byteorder_h.patch

+ 13
- 0
package/stf/prboom/disable-memory-info.patch

@ -0,0 +1,13 @@
--- prboom-2.3.1/configure 2004-09-15 21:11:41.000000000 +0200
+++ prboom-2.3.1-patched/configure 2004-12-08 01:29:43.576763232 +0100
@@ -3140,10 +3140,6 @@
_ACEOF
cat >>confdefs.h <<\_ACEOF
-#define INSTRUMENTED 1
-_ACEOF
-
-cat >>confdefs.h <<\_ACEOF
#define TIMEDIAG 1
_ACEOF

+ 0
- 23
package/stf/prboom/linux-asm-byteorder_h.patch

@ -1,23 +0,0 @@
diff -dur prboom-2.3.1/src/m_swap.h prboom-2.3.1-p/src/m_swap.h
--- prboom-2.3.1/src/m_swap.h 2004-09-15 21:09:24.000000000 +0200
+++ prboom-2.3.1-p/src/m_swap.h 2004-11-06 10:37:14.347851896 +0100
@@ -49,6 +49,19 @@
/* Try to use superfast macros on systems that support them */
#ifdef HAVE_ASM_BYTEORDER_H
+
+#ifdef __CHECKER__
+#define __bitwise __attribute__((bitwise))
+#else
+#define __bitwise
+#endif
+#define __le16 __bitwise __u16
+#define __be16 __bitwise __u16
+#define __le32 __bitwise __u32
+#define __be32 __bitwise __u32
+#define __le64 __bitwise __u64
+#define __be64 __bitwise __u64
+
#include <asm/byteorder.h>
#ifdef __arch__swab16
#define doom_swap_s (signed short)__arch__swab16

Loading…
Cancel
Save