fix: add _GNU_SOURCE for macOS build (#950)

Signed-off-by: Rui Chen <rui@chenrui.dev>

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2022-11-26 07:14:52 -05:00 committed by GitHub
parent fb06b56120
commit b3895208c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,9 @@
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/trim.hpp>
#if defined(__APPLE__)
#define _GNU_SOURCE
#endif
#include <boost/stacktrace.hpp>
#ifdef GEOIP