From d07918991d4ef62bca4d4061ff997ec8b856d228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 21 Oct 2017 00:14:32 +0200 Subject: [PATCH] Support include required for glibc-2.25+ --- configure.ac.in | 1 + panel-plugin/devperf.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/configure.ac.in b/configure.ac.in index 5458dba..fd2d3eb 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -41,6 +41,7 @@ dnl ********************************** dnl *** Check for standard headers *** dnl ********************************** AC_HEADER_STDC() +AC_CHECK_HEADERS([sys/sysmacros.h]) AC_CHECK_LIBM AC_SUBST(LIBM) diff --git a/panel-plugin/devperf.c b/panel-plugin/devperf.c index 175fd44..29bcb87 100644 --- a/panel-plugin/devperf.c +++ b/panel-plugin/devperf.c @@ -35,6 +35,9 @@ #include /* for major() and minor() */ #define _BSD_SOURCE +#ifdef HAVE_SYS_SYSMACROS_H +#include +#endif #include -- 2.15.0.rc1