]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix compilation with 2.6.9 kernel (glibc headers)
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Dec 2004 13:15:57 +0000 (13:15 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Dec 2004 13:15:57 +0000 (13:15 +0000)
Fix by earl <earl@stanfordalumni.org>:
Fixed the compilation with glibc headers based on 2.6.9 kernel.

src/instr/fm.c
src/instr/iwffff.c
src/instr/simple.c

index bbeb7e6bab4c17a8a741bfc631f434b50aa10d3d..bcf57fe6981fbe5029f7ee531eda4863f89dead2 100644 (file)
 #include <sys/stat.h>
 #include <stdio.h>
 #include "local.h"
+/* linux 2.6.9 workaround */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,9)
+#include <asm/types.h>
+#define __le64 __u64
+#define __le32 __u32
+#define __le16 __u16
+#define __be64 __u64
+#define __be32 __u32
+#define __be16 __u16
+#endif /* linux 2.6.9 workaround */
 #include <asm/byteorder.h>
 #include <sound/ainstr_fm.h>
 
index 3af65d42a26582b23321bf044d5f13b47ca6e780..0f8e07633d03aff3f72814383e86abdea69ff259 100644 (file)
 #include <sys/stat.h>
 #include <stdio.h>
 #include "local.h"
+/* linux 2.6.9 workaround */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,9)
+#include <asm/types.h>
+#define __le64 __u64
+#define __le32 __u32
+#define __le16 __u16
+#define __be64 __u64
+#define __be32 __u32
+#define __be16 __u16
+#endif /* linux 2.6.9 workaround */
 #include <sound/ainstr_iw.h>
 
 /*
index 787c73a1e104d92f396619d1504d6e9b8b0d00c8..e62d7338d88482c973f305dd015a4eff93100763 100644 (file)
 #include <sys/stat.h>
 #include <stdio.h>
 #include "local.h"
+/* linux 2.6.9 workaround */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,9)
+#include <asm/types.h>
+#define __le64 __u64
+#define __le32 __u32
+#define __le16 __u16
+#define __be64 __u64
+#define __be32 __u32
+#define __be16 __u16
+#endif /* linux 2.6.9 workaround */
 #include <asm/byteorder.h>
 #include <sound/ainstr_simple.h>