File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040#define NO_THREAD_LS
4141#define NO_ATTRIBUTE_CONSTRUCTOR
4242
43+ /* <time.h> and TIME(3) are userspace only in FreeBSD.
44+ * Use a small wrapper around <sys/time.h> time_second instead. */
45+ #include <sys/time.h>
46+ static inline time_t wolfkmod_time (time_t * tloc ) {
47+ time_t _now = time_second ;
48+ if (tloc ) {
49+ * tloc = _now ;
50+ }
51+ return _now ;
52+ }
53+ #define XTIME wolfkmod_time
54+
4355/* needed to prevent wolfcrypt/src/asn.c version shadowing
4456 * extern global version from /usr/src/sys/sys/systm.h */
4557#define version wc_version
@@ -101,7 +113,6 @@ extern struct malloc_type M_WOLFSSL[1];
101113 #define wc_FreeMutex FreeMutex
102114 #define wc_LockMutex LockMutex
103115 #define wc_UnLockMutex UnLockMutex
104- #define NO_THREAD_LS
105116 #endif /* HAVE_FIPS */
106117
107118 typedef struct wolfSSL_Mutex {
You can’t perform that action at this time.
0 commit comments