Skip to content
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

Fix build on NetBSD. #1106

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/test_override.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ time_t time(time_t *loc)
return retval;
}

int gettimeofday(struct timeval *tv, struct timezone *tz)
int gettimeofday(struct timeval *tv, void *tz)
{
tv->tv_sec = 1370546000;
tv->tv_usec = 123456;
Expand Down
4 changes: 2 additions & 2 deletions src/third-party/rapidyaml/ryml_all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ C4_FOR_EACH(PRN_STRUCT_OFFSETS, a, b, c);
#elif defined(__linux)
# define C4_UNIX
# define C4_LINUX
#elif defined(__unix)
#elif defined(__unix) || defined(__NetBSD__)
# define C4_UNIX
#elif defined(__arm__) || defined(__aarch64__)
# define C4_ARM
Expand All @@ -352,7 +352,7 @@ C4_FOR_EACH(PRN_STRUCT_OFFSETS, a, b, c);
# error "unknown platform"
#endif

#if defined(__posix) || defined(__unix__) || defined(__linux)
#if defined(__posix) || defined(__unix__) || defined(__linux) || defined(__NetBSD__)
# define C4_POSIX
#endif

Expand Down