]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skypopen: OSS driver, refinement
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Mon, 25 Apr 2011 16:36:42 +0000 (11:36 -0500)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Mon, 25 Apr 2011 16:36:42 +0000 (11:36 -0500)
src/mod/endpoints/mod_skypopen/oss/skypopen.h

index f61925626c9c6bede4789b3f6fb5fbf39c834c08..de38c791c9bbd39871ab026f3a9fe93eac211891 100644 (file)
 #ifndef _SKYPOPEN_H_
 #define _SKYPOPEN_H_
 
+#include <linux/version.h>
 #include <linux/ioctl.h> /* needed for the _IOW etc stuff used later */
 
-#define CENTOS_5 /* define this ONLY if you're on CentOS 5.x (eg: undef on CentOS 6.x ) */
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 18)
+#define CENTOS_5 
 #define WANT_HRTIMER /* undef this only if you don't want to use High Resolution Timers (why?) */
+#endif /* CentOS 5.x */
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)
+#define WANT_HRTIMER 
+#endif /* HRTIMER */
+
 #define SKYPOPEN_BLK 1920
 #define SKYPOPEN_SLEEP 20