Skip to content

Commit

Permalink
add declaration of struct timezone in README
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
zhaojh329 committed Aug 18, 2024
1 parent 2ecf6f1 commit e826b2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ ffi.cdef([[
suseconds_t tv_usec; /* microseconds */
};
struct timezone {
int tz_minuteswest; /* minutes west of Greenwich */
int tz_dsttime; /* type of DST correction */
};
int gettimeofday(struct timeval *tv, struct timezone *tz);
char *strerror(int errnum);
]])
Expand Down

0 comments on commit e826b2e

Please sign in to comment.