Skip to content

Commit

Permalink
Support <sys/sysmacros.h> include required for glibc-2.25+ (Fixes #13…
Browse files Browse the repository at this point in the history
…940)
  • Loading branch information
mgorny authored and landryb committed Nov 19, 2017
1 parent 1f50f1d commit 0787a89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac.in
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions panel-plugin/devperf.c
Expand Up @@ -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>


Expand Down

0 comments on commit 0787a89

Please sign in to comment.