[Xfce4-commits] [panel-plugins/xfce4-diskperf-plugin] 01/01: Support <sys/sysmacros.h> include required for glibc-2.25+ (Fixes #13940)

noreply at xfce.org noreply at xfce.org
Sun Nov 19 21:02:45 CET 2017


This is an automated email from the git hooks/post-receive script.

l   a   n   d   r   y       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-diskperf-plugin.

commit 0787a8972be2b95fac26c502a82427299e7e48c0
Author: Michał Górny <mgorny at gentoo.org>
Date:   Sat Oct 21 00:14:32 2017 +0200

    Support <sys/sysmacros.h> include required for glibc-2.25+ (Fixes #13940)
---
 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 <sys/time.h>
 /* for major() and minor() */
 #define _BSD_SOURCE
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h>
+#endif
 #include <sys/types.h>
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list