You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2021/09/28 10:09:14 UTC

[plc4x] 03/04: fix(plc4c): include time.h so build won't fail on mac

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit cec25479af8a26605386db5fad7343216eb7fcfc
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Sep 28 11:53:04 2021 +0200

    fix(plc4c): include time.h so build won't fail on mac
---
 plc4c/drivers/s7/include/plc4c/driver_s7_static.h | 1 +
 plc4c/drivers/s7/src/driver_s7_static.c           | 1 +
 2 files changed, 2 insertions(+)

diff --git a/plc4c/drivers/s7/include/plc4c/driver_s7_static.h b/plc4c/drivers/s7/include/plc4c/driver_s7_static.h
index 2ef20fe..06bbc54 100644
--- a/plc4c/drivers/s7/include/plc4c/driver_s7_static.h
+++ b/plc4c/drivers/s7/include/plc4c/driver_s7_static.h
@@ -22,6 +22,7 @@
 
 #include <plc4c/spi/read_buffer.h>
 #include <plc4c/spi/write_buffer.h>
+#include <time.h>
 
 /*
  *
diff --git a/plc4c/drivers/s7/src/driver_s7_static.c b/plc4c/drivers/s7/src/driver_s7_static.c
index afb5228..f22d8fc 100644
--- a/plc4c/drivers/s7/src/driver_s7_static.c
+++ b/plc4c/drivers/s7/src/driver_s7_static.c
@@ -20,6 +20,7 @@
 #include <plc4c/spi/read_buffer.h>
 #include <plc4c/spi/write_buffer.h>
 #include <string.h>
+#include <time.h>
 
 /*
  *