From ea05c23ab79cd9adbfe91d2b210e652c2e5097ab Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 31 Aug 2017 20:40:37 +0200 Subject: rfkill: add NFC fallback for old headers Signed-off-by: Karel Zak --- sys-utils/rfkill.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys-utils/rfkill.c') diff --git a/sys-utils/rfkill.c b/sys-utils/rfkill.c index 21adc2176..380d29e56 100644 --- a/sys-utils/rfkill.c +++ b/sys-utils/rfkill.c @@ -37,6 +37,15 @@ #include "widechar.h" #include "xalloc.h" + +/* + * NFC supported by kernel since v3.10 (year 2013); FM and another types are from + * year 2009 (2.6.33) or older. + */ +#ifndef RFKILL_TYPE_NFC +# define RFKILL_TYPE_NFC RFKILL_TYPE_FM + 1 +#endif + struct rfkill_type_str { enum rfkill_type type; const char *name; -- cgit v1.2.3-55-g7522