]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rfkill: add NFC fallback for old headers
authorKarel Zak <kzak@redhat.com>
Thu, 31 Aug 2017 18:40:37 +0000 (20:40 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Aug 2017 18:40:37 +0000 (20:40 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rfkill.c

index 21adc2176943770db26269310e816b070f3b8ffc..380d29e565a208c8087d2451df76583bb7c53cf8 100644 (file)
 #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;