summaryrefslogtreecommitdiffstats
path: root/src/knemod/backends/kcmregistry.h
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-07-14 12:50:17 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-07-19 17:21:46 +0200
commit9ec9f528630953ce59a1384fb537f50e0a216c66 (patch)
treecb812f68746a0b8d7b2af39012ffd8bc254bb30f /src/knemod/backends/kcmregistry.h
parent464e2760973db5f740d220193d57914e2770719c (diff)
downloadknemo-9ec9f528.tar.gz
knemo-9ec9f528.zip
Make the Nettools backend optional.
Signed-off-by: gregory guy <gregory-tde@laposte.net> (cherry picked from commit b4149315024044440d69dbe9a4961ffb6e45989f)
Diffstat (limited to 'src/knemod/backends/kcmregistry.h')
-rw-r--r--src/knemod/backends/kcmregistry.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/knemod/backends/kcmregistry.h b/src/knemod/backends/kcmregistry.h
index 28ffec4..38a95c6 100644
--- a/src/knemod/backends/kcmregistry.h
+++ b/src/knemod/backends/kcmregistry.h
@@ -20,6 +20,10 @@
#ifndef KCMREGISTRY_H
#define KCMREGISTRY_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <tqstring.h>
#include <tdelocale.h>
@@ -42,13 +46,13 @@ struct KCMRegistryEntry
KCMRegistryEntry KCMRegistry[] =
{
- { "Sys",
- i18n( "Uses the sys filesystem available in 2.6 kernels and " \
- "direct system calls to the Linux kernel." ) },
- { "Nettools",
- i18n( "Uses the tools from the net-tools package like ifconfig, " \
- "iwconfig and route to read the necessary information " \
- "from the ouput of these commands.") },
+ { "Sys", i18n( "Uses the sys filesystem available in 2.6 kernels and " \
+ "direct system calls to the Linux kernel." ) },
+#if defined( WITH_NETTOOLS )
+ { "Nettools", i18n( "Uses the tools from the net-tools package like ifconfig, " \
+ "iwconfig and route to read the necessary information " \
+ "from the ouput of these commands.") },
+#endif
{ TQString(), TQString() }
};