Slightly adapted by Nico, because distributed package does not have configure.ac.in. From 0787a8972be2b95fac26c502a82427299e7e48c0 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+ (Fixes #13940) --- configure.ac | 1 + panel-plugin/devperf.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 5458dba..fd2d3eb 100644 --- a/configure.ac +++ b/configure.ac @@ -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.16.1