From: Karel Zak Date: Thu, 31 Aug 2017 18:40:37 +0000 (+0200) Subject: rfkill: add NFC fallback for old headers X-Git-Tag: v2.31-rc1~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea05c23ab79cd9adbfe91d2b210e652c2e5097ab;p=thirdparty%2Futil-linux.git rfkill: add NFC fallback for old headers Signed-off-by: Karel Zak --- diff --git a/sys-utils/rfkill.c b/sys-utils/rfkill.c index 21adc21769..380d29e565 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;