summaryrefslogtreecommitdiffstats
path: root/sys-utils/rfkill.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/rfkill.c')
-rw-r--r--sys-utils/rfkill.c9
1 files changed, 9 insertions, 0 deletions
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;