mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Fix compilation with 2.6.9 kernel (glibc headers)
Fix by earl <earl@stanfordalumni.org>: Fixed the compilation with glibc headers based on 2.6.9 kernel.
This commit is contained in:
parent
30f35c1f7a
commit
77348e830f
3 changed files with 33 additions and 0 deletions
|
|
@ -30,6 +30,17 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "local.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 <asm/byteorder.h>
|
||||||
#include <sound/ainstr_fm.h>
|
#include <sound/ainstr_fm.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,17 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "local.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>
|
#include <sound/ainstr_iw.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,17 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "local.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 <asm/byteorder.h>
|
||||||
#include <sound/ainstr_simple.h>
|
#include <sound/ainstr_simple.h>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue