diff --git a/include/zephyr/posix/sys/time.h b/include/zephyr/posix/sys/time.h index 9ba6a157a7b..d7e108b5ff7 100644 --- a/include/zephyr/posix/sys/time.h +++ b/include/zephyr/posix/sys/time.h @@ -29,7 +29,7 @@ struct timeval { extern "C" { #endif -int gettimeofday(struct timeval *tv, const void *tz); +int gettimeofday(struct timeval *tv, void *tz); #ifdef __cplusplus } diff --git a/lib/posix/clock.c b/lib/posix/clock.c index c5968177f79..0b948bd77ae 100644 --- a/lib/posix/clock.c +++ b/lib/posix/clock.c @@ -111,7 +111,7 @@ int clock_settime(clockid_t clock_id, const struct timespec *tp) * * See IEEE 1003.1 */ -int gettimeofday(struct timeval *tv, const void *tz) +int gettimeofday(struct timeval *tv, void *tz) { struct timespec ts; int res;