summaryrefslogtreecommitdiffstats
path: root/src/knemod/backends/daemonregistry.h
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2021-07-14 12:50:17 +0200
committergregory guy <[email protected]>2021-07-19 14:17:02 +0200
commitb4149315024044440d69dbe9a4961ffb6e45989f (patch)
treee46e9de0e581189f0106593c4d86b61e40d921cf /src/knemod/backends/daemonregistry.h
parentdefa7b64d793db74f47a706cb2565684f9577104 (diff)
downloadknemo-b4149315024044440d69dbe9a4961ffb6e45989f.tar.gz
knemo-b4149315024044440d69dbe9a4961ffb6e45989f.zip
Make the Nettools backend optional.
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src/knemod/backends/daemonregistry.h')
-rw-r--r--src/knemod/backends/daemonregistry.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/knemod/backends/daemonregistry.h b/src/knemod/backends/daemonregistry.h
index 26af5ae..d3ec3b9 100644
--- a/src/knemod/backends/daemonregistry.h
+++ b/src/knemod/backends/daemonregistry.h
@@ -20,6 +20,10 @@
#ifndef DAEMONREGISTRY_H
#define DAEMONREGISTRY_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <tqstring.h>
#include <tdelocale.h>
@@ -47,7 +51,9 @@ struct DaemonRegistryEntry
DaemonRegistryEntry DaemonRegistry[] =
{
{ "Sys", SysBackend::createInstance },
+#if defined( WITH_NETTOOLS )
{ "Nettools", NetToolsBackend::createInstance },
+#endif
{ TQString(), 0 }
};