summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/compat.h b/compat.h
index 93b8546..71e481d 100644
--- a/compat.h
+++ b/compat.h
@@ -54,6 +54,10 @@
//set it to the maximum supported revision
//we've not yet fully implemented version 7
-#define SAMSUNG_RIL_VERSION 6
+#if RIL_VERSION >= 6
+ #define SAMSUNG_RIL_VERSION 6
+#else
+ #define SAMSUNG_RIL_VERSION RIL_VERSION
+#endif
#endif //__COMPAT_H__