diff --git a/frameworks/libhilog/base/hilog_base.c b/frameworks/libhilog/base/hilog_base.c index 7e344f657dc192886e543ac1e2aaed751e969b9d..fdabec4e5a7cdf02b852518872b7eaade3ef80df 100644 --- a/frameworks/libhilog/base/hilog_base.c +++ b/frameworks/libhilog/base/hilog_base.c @@ -24,6 +24,7 @@ #include #include #include +#define _GNU_SOURCE #include #define LOG_LEN 3 @@ -118,4 +119,4 @@ bool HiLogBaseIsLoggable(unsigned int domain, const char *tag, LogLevel level) return false; } return true; -} \ No newline at end of file +}