From a053a7b359de9bb31e50ab40a870428ffe13d652 Mon Sep 17 00:00:00 2001 From: lizy <821610729@qq.com> Date: Wed, 28 Aug 2024 09:18:03 +0800 Subject: [PATCH] Fix build with glibc 2.28 #127 --- src/os/linux/linux_sigar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index 81b591bb2..905bcfc50 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -23,8 +23,13 @@ #include #include #include +#include #include +#ifdef __GNU_LIBRARY__ +#include +#endif + #include "sigar.h" #include "sigar_private.h" #include "sigar_util.h"