summaryrefslogtreecommitdiff
path: root/plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.cc')
-rw-r--r--plugin.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugin.cc b/plugin.cc
index 8e769b0..2f07f63 100644
--- a/plugin.cc
+++ b/plugin.cc
@@ -84,7 +84,15 @@ bool cInputDevicePlugin::ProcessArgs(int argc, char *argv[])
break;
switch (c) {
- case 'S': systemd_idx = optarg; break;
+ case 'S':
+#ifdef VDR_USE_SYSTEMD
+ systemd_idx = optarg;
+ break;
+#else
+ esyslog("%s: systemd support has not been compiled in\n",
+ Name());
+ return false;
+#endif
case 's': socket_path = optarg; break;
default:
esyslog("%s: invalid option\n", Name());
@@ -120,9 +128,11 @@ bool cInputDevicePlugin::Initialize(void)
controller_ = new cInputDeviceController(*this);
switch (socket_type_) {
+#ifdef VDR_USE_SYSTEMD
case enSYSTEMD:
is_ok = controller_->open_udev_socket(socket_.idx);
break;
+#endif
case enSOCKET:
is_ok = controller_->open_udev_socket(socket_.path);