From 94968b440646a166b08f79391311eea1dd07ac0a Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Fri, 15 Jan 2016 00:08:16 -0500 Subject: [PATCH] Fix building on musl-libc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libgtop fails to build on musl libc, due to the header resulting in the headers that would be loaded for libc 5 being loaded on musl libc. musl defines headers which are also defined in linux-headers' in.h, causing redefinition errors. https://bugzilla.gnome.org/show_bug.cgi?id=760655 Signed-off-by: BenoƮt Dejean --- sysdeps/linux/netload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/linux/netload.c b/sysdeps/linux/netload.c index b91def07..dcfea34b 100644 --- a/sysdeps/linux/netload.c +++ b/sysdeps/linux/netload.c @@ -34,7 +34,7 @@ #include #include -#if !defined (_LIBC) && defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1 +#if !defined (__GLIBC__) || __GNU_LIBRARY__ > 1 /* GNU LibC */ #include #include @@ -43,7 +43,7 @@ #include #include #include -#else /* Libc 5 */ +#elif defined (__GLIBC__) /* Libc 5 */ #include #include #include