wmhdplop: include sys/sysmacros.h for major/minor funcs

In some future release, glibc's  <sys/types.h> will not include
<sys/sysmacros.h> anymore. As of 2.25, it still does, but you get
deprecation warnings if you use the macros without including
<sys/sysmacros.h>

Gentoo original bug: https://bugs.gentoo.org/show_bug.cgi?id=604296
This commit is contained in:
Bernard Cafarelli 2017-02-16 15:16:43 +01:00 committed by Carlos R. Mafra
parent 13cc7b59b5
commit 7cf2e5406b

View file

@ -4,6 +4,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <unistd.h>
#include <linux/major.h>
#include <ctype.h>