diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-04-07 14:28:27 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-04-07 14:28:27 +0200 |
commit | 2ed2288b6fca780faf7b28efb38119528bb44a81 (patch) | |
tree | d555e9203cd17863211cad09a566e21ed54c2ce7 | |
parent | 32fde188aab06d2d750c5170d01adf89bb538e05 (diff) | |
download | alsa-driver-build-unstable-2ed2288b6fca780faf7b28efb38119528bb44a81.tar.gz |
add some linux-2.4 related stuff (pgprot_noncached & linux/gfp.h)
Singed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | include/adriver.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index fa85eb4d8..79b128ef8 100644 --- a/configure.in +++ b/configure.in @@ -1566,6 +1566,7 @@ CHECK_KERNEL_HEADER(linux/bitrev.h) CHECK_KERNEL_HEADER(linux/hrtimer.h) CHECK_KERNEL_HEADER(linux/gcd.h, [#include \"gcd_compat.h\" ]) +CHECK_KERNEL_HEADER(linux/gfp.h) dnl Check for dump_stack if test "$kversion.$kpatchlevel" = "2.6"; then diff --git a/include/adriver.h b/include/adriver.h index 5a96be9fe..a204e17cf 100644 --- a/include/adriver.h +++ b/include/adriver.h @@ -1993,4 +1993,11 @@ blocking_notifier_chain_unregister(struct blocking_notifier_head *nh, #endif /* BLOCKING_INIT_NOTIFIER_HEAD */ #endif /* <2.6.17 */ +/* pgprot_noncached - 2.4 has different defines */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) +#ifndef pgprot_noncached +#define pgprot_noncached(x) (x) +#endif +#endif + #endif /* __SOUND_LOCAL_DRIVER_H */ |