All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev
@ 2016-04-17  2:30 Mike Frysinger
       [not found] ` <1460860245-14895-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 12+ 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] 12+ messages in thread

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

Thread overview: 12+ 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
     [not found] ` <1460860245-14895-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2016-04-18 16:39   ` Brian Norris
2016-04-18 16:39     ` Brian Norris
     [not found]     ` <20160418163926.GB52272-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-04-18 16:49       ` Mike Frysinger
2016-04-18 16:49         ` Mike Frysinger
     [not found]         ` <20160418164908.GR5369-UgUKS2FnFs9+urZeOPWqwQ@public.gmane.org>
2016-04-19  5:52           ` [PATCH] makedev(3): point people at sys/sysmacros.h Mike Frysinger
2016-04-19  5:52             ` Mike Frysinger
     [not found]             ` <1461045163-21248-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2016-04-20 11:31               ` Michael Kerrisk (man-pages)
2016-04-20 11:31                 ` Michael Kerrisk (man-pages)
2016-04-20 11:47                 ` Zack Weinberg
     [not found]                   ` <CAKCAbMiMNtMmCP4EPZnZ5DpSNaNc=SDbbdKKZmoRybmWHyOoTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-20 12:38                     ` Michael Kerrisk (man-pages)
2016-04-20 12:38                       ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.