-
Notifications
You must be signed in to change notification settings - Fork 77
Fix Zephyr (gcc) build issues #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix Zephyr (gcc) build issues #33
Conversation
|
I can take a look at this a bit later. But please feel free to investigate it yourself. |
|
In my environment If I define Do you have an idea how to solve this? |
|
Zephyr exposes gettimeofday() from sys/time.h. I think something like this might work: diff --git a/src/utils.c b/src/utils.c
index a4459b5..b42179e 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -148,6 +148,10 @@ int add_iso8601_utc_datetime(char *buf, size_t size)
return strftime(buf, size, "%Y-%m-%dT%H:%M:%SZ", &timeinfo);
}
+#elif defined(__ZEPHYR__)
+
+#include <sys/time.h>
+
#elif defined(__BARE_METAL__)
#ifndef _TIMEVAL_DEFINED |
I'm using
libosdp-rsin Zephyr building with GCC (defined__BARE_METAL__,__ZEPHYR__).And I faced the following issues:
gettimeofday(linker issue) and__noreturnundefined