File 0003-remove-redefinitions-of-some-macros.diff of Package oss-linux
From 3c986788d58583ab5a0790c38e595c541ab2b851 Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Fri, 25 Jul 2008 10:08:19 +0200
Subject: [PATCH] remove redefinitions of some macros
---
kernel/OS/Linux/os_linux.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/OS/Linux/os_linux.h b/kernel/OS/Linux/os_linux.h
index 5e70daf..6c06265 100644
--- a/kernel/OS/Linux/os_linux.h
+++ b/kernel/OS/Linux/os_linux.h
@@ -106,9 +106,6 @@ struct _oss_device_t
#define ALLOW_BUFFER_MAPPING
#define ALLOW_SELECT
-#define SEL_IN 0
-#define SEL_OUT 1
-#define SEL_EX 0xffffffff
/* Busy wait routine */
#define oss_udelay drv_usecwait
@@ -224,7 +221,9 @@ extern void *oss_pmalloc (size_t sz);
* These macros are obsolete and should not be used in any new code.
* Use the timeout mechanism (see the timeout(9F) Solaris man page).
*/
+#if 0
#define DEFINE_TIMER(name, proc) static timeout_id_t name = 0
+#endif
#define REMOVE_TIMER(name, proc) {if (name != 0) oss_untimeout(name);}
#define INIT_TIMER(name,proc)
typedef void (*timeout_func_t) (void *);
--
1.5.6