-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,16 @@ | |
* ([email protected]). This product includes software written by Tim | ||
* Hudson ([email protected]). */ | ||
|
||
// `strdup` was only officially added in C23: | ||
// * https://en.cppreference.com/w/c/string/byte/strdup | ||
// The following macros are needed to ensure its definition | ||
// is provided by the headers. | ||
#ifdef __STDC_ALLOC_LIB__ | ||
#define __STDC_WANT_LIB_EXT2__ 1 | ||
#else | ||
#define _POSIX_C_SOURCE 200809L | ||
#endif | ||
|
||
// Ensure we can't call OPENSSL_malloc circularly. | ||
#define _BORINGSSL_PROHIBIT_OPENSSL_MALLOC | ||
#include <openssl/err.h> | ||
|