From: Giovanni Maruzzelli Date: Mon, 25 Apr 2011 16:36:42 +0000 (-0500) Subject: skypopen: OSS driver, refinement X-Git-Tag: v1.2-rc1~118^2~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403b3a23bea9fd0a53436c5adf73fb4fc4af8ac3;p=thirdparty%2Ffreeswitch.git skypopen: OSS driver, refinement --- diff --git a/src/mod/endpoints/mod_skypopen/oss/skypopen.h b/src/mod/endpoints/mod_skypopen/oss/skypopen.h index f61925626c..de38c791c9 100644 --- a/src/mod/endpoints/mod_skypopen/oss/skypopen.h +++ b/src/mod/endpoints/mod_skypopen/oss/skypopen.h @@ -19,10 +19,18 @@ #ifndef _SKYPOPEN_H_ #define _SKYPOPEN_H_ +#include #include /* 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