mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.9 KiB

  1. diff -dur alsa-lib-1.0.6/src/instr/fm.c alsa-lib-1.0.6-patch/src/instr/fm.c
  2. --- alsa-lib-1.0.6/src/instr/fm.c 2002-02-04 11:18:40.000000000 +0000
  3. +++ alsa-lib-1.0.6-patch/src/instr/fm.c 2004-10-24 02:46:15.498518520 +0000
  4. @@ -30,6 +30,19 @@
  5. #include <sys/stat.h>
  6. #include <stdio.h>
  7. #include "local.h"
  8. +
  9. +#ifdef __CHECKER__
  10. +#define __bitwise __attribute__((bitwise))
  11. +#else
  12. +#define __bitwise
  13. +#endif
  14. +#define __le16 __bitwise __u16
  15. +#define __be16 __bitwise __u16
  16. +#define __le32 __bitwise __u32
  17. +#define __be32 __bitwise __u32
  18. +#define __le64 __bitwise __u64
  19. +#define __be64 __bitwise __u64
  20. +
  21. #include <asm/byteorder.h>
  22. #include <sound/ainstr_fm.h>
  23. diff -dur alsa-lib-1.0.6/src/instr/iwffff.c alsa-lib-1.0.6-patch/src/instr/iwffff.c
  24. --- alsa-lib-1.0.6/src/instr/iwffff.c 2004-04-20 13:42:48.000000000 +0000
  25. +++ alsa-lib-1.0.6-patch/src/instr/iwffff.c 2004-10-24 02:47:55.470320496 +0000
  26. @@ -31,6 +31,19 @@
  27. #include <sys/stat.h>
  28. #include <stdio.h>
  29. #include "local.h"
  30. +
  31. +#ifdef __CHECKER__
  32. +#define __bitwise __attribute__((bitwise))
  33. +#else
  34. +#define __bitwise
  35. +#endif
  36. +#define __le16 __bitwise __u16
  37. +#define __be16 __bitwise __u16
  38. +#define __le32 __bitwise __u32
  39. +#define __be32 __bitwise __u32
  40. +#define __le64 __bitwise __u64
  41. +#define __be64 __bitwise __u64
  42. +
  43. #include <sound/ainstr_iw.h>
  44. /*
  45. diff -dur alsa-lib-1.0.6/src/instr/simple.c alsa-lib-1.0.6-patch/src/instr/simple.c
  46. --- alsa-lib-1.0.6/src/instr/simple.c 2002-02-04 11:18:40.000000000 +0000
  47. +++ alsa-lib-1.0.6-patch/src/instr/simple.c 2004-10-24 02:46:41.286598136 +0000
  48. @@ -31,6 +31,19 @@
  49. #include <sys/stat.h>
  50. #include <stdio.h>
  51. #include "local.h"
  52. +
  53. +#ifdef __CHECKER__
  54. +#define __bitwise __attribute__((bitwise))
  55. +#else
  56. +#define __bitwise
  57. +#endif
  58. +#define __le16 __bitwise __u16
  59. +#define __be16 __bitwise __u16
  60. +#define __le32 __bitwise __u32
  61. +#define __be32 __bitwise __u32
  62. +#define __le64 __bitwise __u64
  63. +#define __be64 __bitwise __u64
  64. +
  65. #include <asm/byteorder.h>
  66. #include <sound/ainstr_simple.h>