linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev
@ 2016-04-17  2:30 Mike Frysinger
  2016-04-18 16:39 ` Brian Norris
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2016-04-17  2:30 UTC (permalink / raw)
  To: linux-mtd

These functions have always been defined in sys/sysmacros.h under
Linux C libraries.  For some, including sys/types.h implicitly
includes that as well, but glibc wants to deprecate that, and some
others already have.  Include the header explicitly for the funcs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/common.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/common.h b/include/common.h
index fb0ca83..8cb3142 100644
--- a/include/common.h
+++ b/include/common.h
@@ -28,6 +28,7 @@
 #include <errno.h>
 #include <features.h>
 #include <inttypes.h>
+#include <sys/sysmacros.h>
 #include "version.h"
 
 #ifndef PROGRAM_NAME
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-20 12:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-17  2:30 [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev Mike Frysinger
2016-04-18 16:39 ` Brian Norris
2016-04-18 16:49   ` Mike Frysinger
2016-04-19  5:52     ` [PATCH] makedev(3): point people at sys/sysmacros.h Mike Frysinger
2016-04-20 11:31       ` Michael Kerrisk (man-pages)
2016-04-20 11:47         ` Zack Weinberg
2016-04-20 12:38           ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).