summaryrefslogtreecommitdiff
path: root/src/system/dlt-system-watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/dlt-system-watchdog.c')
-rw-r--r--src/system/dlt-system-watchdog.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/system/dlt-system-watchdog.c b/src/system/dlt-system-watchdog.c
index c764978..5eef59b 100644
--- a/src/system/dlt-system-watchdog.c
+++ b/src/system/dlt-system-watchdog.c
@@ -40,14 +40,17 @@
** TO BE CHANGED BY USER [yes/no]: no **
** **
*******************************************************************************/
+#if defined(DLT_SYSTEMD_WATCHDOG_ENABLE)
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/timerfd.h>
#include "dlt.h"
-#include "sd-daemon.h"
#include "dlt-system.h"
+#include "sd-daemon.h"
+
+
DLT_DECLARE_CONTEXT(watchdogContext)
DLT_IMPORT_CONTEXT(dltsystem)
@@ -109,6 +112,7 @@ int make_periodic(unsigned int period, PeriodicData *info)
return timerfd_settime (fd, 0, &itval, NULL);
}
+
void watchdog_thread(void *v_conf)
{
char str[512];
@@ -195,3 +199,4 @@ void start_systemd_watchdog(DltSystemConfiguration *conf)
DLT_LOG(dltsystem, DLT_LOG_ERROR,DLT_STRING("Could not create thread for systemd watchdog\n"));
}
}
+#endif