Let test suites see gettimeofday() on FreeBSD

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2026-02-18 22:03:20 +01:00
parent 08614e1e96
commit fa62af0a47

View File

@@ -23,6 +23,13 @@
#endif
#endif
#if defined(__FreeBSD__)
// for gettimeofday() (On FreeBSD, _POSIX_C_SOURCE isn't enough)
#if !defined(_XOPEN_SOURCE)
#define _XOPEN_SOURCE 500
#endif
#endif
#include "mbedtls/build_info.h"
/* Test code may use deprecated identifiers only if the preprocessor symbol