mirror of
https://github.com/espressif/mbedtls.git
synced 2026-08-21 02:39:53 +00:00
Let test suites see gettimeofday() on FreeBSD
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user