[PATCH 2/2] wmhdplop: include sys/sysmacros.h for major/minor funcs

Bernard Cafarelli <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
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
---
 wmhdplop/devnames.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wmhdplop/devnames.c b/wmhdplop/devnames.c
index b1749aa..5a0b81c 100644
--- a/wmhdplop/devnames.c
+++ b/wmhdplop/devnames.c
@@ -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>
-- 
2.11.1


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.