From 20136d1af7dbf1d619499cc27e1c75e05368f3b6 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Tue, 25 Mar 2014 13:24:52 +0100 Subject: Cygwin port: cygwin patch, signal handling patch and cppcheck and install lib dll to correct location on Windows. Originally from Mikko Rapeli . Signed-off-by: Alexander Wenzel --- src/daemon/dlt_daemon_client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/daemon/dlt_daemon_client.c') diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c index a209975..30af665 100644 --- a/src/daemon/dlt_daemon_client.c +++ b/src/daemon/dlt_daemon_client.c @@ -63,10 +63,14 @@ #include #include +#ifdef linux #include +#endif #include #include +#ifdef linux #include +#endif #include "dlt_types.h" #include "dlt-daemon.h" @@ -1188,8 +1192,9 @@ int dlt_daemon_control_message_timezone(int sock, DltDaemon *daemon, DltDaemonLo time_t t = time(NULL); struct tm lt = {0}; localtime_r(&t, <); - +#if !defined(__CYGWIN__) resp->timezone = (int32_t) lt.tm_gmtoff; +#endif resp->isdst = (uint8_t) lt.tm_isdst; /* send message */ -- cgit v1.2.1