Skip to content

WIP - hack to build on FreeBSD.

Håkan T Johansson requested to merge freebsd into main

With the dirty hack of this commit nurdlib is able to compile on FreeBSD. I'm not suggesting to merge; do not know how to fix nicely.

time.h contains:

#if __POSIX_VISIBLE >= 199506
char *asctime_r(const struct tm *, char *);
char *ctime_r(const time_t *, char *);
struct tm *gmtime_r(const time_t *, struct tm *);
struct tm *localtime_r(const time_t *, struct tm *);
#endif

also make test ends with:

[tests/util.c:133: strtoi32]
[tests/util.c:135: Assert]
tests/util.c:122: 0=0 == i=1 failed.
Tests: 167/167 = 100.00%
Tries: 32862/32862 = 100.00%

Seems to be same on Linux, so I assume at least that is good.

Merge request reports

Loading