public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Adrian Bunk <bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH] makedev.3: glibc has deprecated exposing the definitions via <sys/types.h>
Date: Sun, 26 Nov 2017 08:36:15 +0100	[thread overview]
Message-ID: <4a5a6a79-c960-404d-2e48-5ed8779dd11a@gmail.com> (raw)
In-Reply-To: <20171125101207.27932-1-bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

On 11/25/2017 11:12 AM, Adrian Bunk wrote:
> Compile warning with glibc 2.25:
> 
> warning: In the GNU C Library, "makedev" is defined
>  by <sys/sysmacros.h>. For historical compatibility, it is
>  currently defined by <sys/types.h> as well, but we plan to
>  remove this soon. To use "makedev", include <sys/sysmacros.h>
>  directly. If you did not intend to use a system-defined macro
>  "makedev", you should undefine it after including <sys/types.h>.

Thanks, Adrian. Patch applied.

Cheers,

Michael

> Background:
> https://sourceware.org/git/?p=glibc.git;a=commit;h=dbab6577c6684c62bd2521c1c29dc25c3cac966f
> ---
>  man3/makedev.3 | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/man3/makedev.3 b/man3/makedev.3
> index 3398bbb0b..75c191be7 100644
> --- a/man3/makedev.3
> +++ b/man3/makedev.3
> @@ -94,9 +94,10 @@ and
>  The latter names are exported, but the traditional names are more portable.
>  .PP
>  The BSDs expose the definitions for these macros via
> -.IR <sys/types.h> ,
> -and glibc also exposes definitions for these macros from that
> -header file if suitable feature test macros are defined.
> +.IR <sys/types.h> .
> +glibc also exposes definitions for these macros from that
> +header file if suitable feature test macros are defined,
> +but this is deprecated and will be removed in the future.
>  .SH SEE ALSO
>  .BR mknod (2),
>  .BR stat (2)
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2017-11-26  7:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-25 10:12 [PATCH] makedev.3: glibc has deprecated exposing the definitions via <sys/types.h> Adrian Bunk
     [not found] ` <20171125101207.27932-1-bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-11-26  7:36   ` Michael Kerrisk (man-pages) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a5a6a79-c960-404d-2e48-5ed8779dd11a@gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=bunk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox