Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 20 years ago
parent
commit
d51bc4d173
2 changed files with 78 additions and 0 deletions
  1. +9
    -0
      package/base/alsa/alsa.conf
  2. +69
    -0
      package/base/alsa/linux-asm-byteorder_h.patch.alsa-lib

+ 9
- 0
package/base/alsa/alsa.conf

@ -29,6 +29,15 @@ pkg_alsa_main() {
do do
echo "Extracting $x ..." echo "Extracting $x ..."
tar $taropt $archdir/$x tar $taropt $archdir/$x
# apply patches, if existent
cd ${x%.tar.bz2}
t=${x#alsa-*-}; t=${x%-$t}
for y in $confdir/*.patch.$t; do
if [ -f $y ]; then
patch -p1 < $y
fi
done
cd ..
done done
# build the non-driver packages # build the non-driver packages

+ 69
- 0
package/base/alsa/linux-asm-byteorder_h.patch.alsa-lib

@ -0,0 +1,69 @@
diff -dur alsa-lib-1.0.6/src/instr/fm.c alsa-lib-1.0.6-patch/src/instr/fm.c
--- alsa-lib-1.0.6/src/instr/fm.c 2002-02-04 11:18:40.000000000 +0000
+++ alsa-lib-1.0.6-patch/src/instr/fm.c 2004-10-24 02:46:15.498518520 +0000
@@ -30,6 +30,19 @@
#include <sys/stat.h>
#include <stdio.h>
#include "local.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>
#include <sound/ainstr_fm.h>
diff -dur alsa-lib-1.0.6/src/instr/iwffff.c alsa-lib-1.0.6-patch/src/instr/iwffff.c
--- alsa-lib-1.0.6/src/instr/iwffff.c 2004-04-20 13:42:48.000000000 +0000
+++ alsa-lib-1.0.6-patch/src/instr/iwffff.c 2004-10-24 02:47:55.470320496 +0000
@@ -31,6 +31,19 @@
#include <sys/stat.h>
#include <stdio.h>
#include "local.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 <sound/ainstr_iw.h>
/*
diff -dur alsa-lib-1.0.6/src/instr/simple.c alsa-lib-1.0.6-patch/src/instr/simple.c
--- alsa-lib-1.0.6/src/instr/simple.c 2002-02-04 11:18:40.000000000 +0000
+++ alsa-lib-1.0.6-patch/src/instr/simple.c 2004-10-24 02:46:41.286598136 +0000
@@ -31,6 +31,19 @@
#include <sys/stat.h>
#include <stdio.h>
#include "local.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>
#include <sound/ainstr_simple.h>

Loading…
Cancel
Save