[BRLTTY] makedev now in sysmacros.h

Dave Mielke dave at mielke.cc
Tue Mar 21 15:49:03 EDT 2017


[quoted lines by Mike Gorse on 2017/03/21 at 15:08 -0400]

>Recent versions of glibc are generating a warning like this when
>brltty is compiled:
>
>./system_linux.c: In function 'openCharacterDevice':
>./system_linux.c:809:13: 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>.
>             if (mknod(path, mode, makedev(major, minor)) == -1) {
>
>We now have the attached patch in openSUSE. sysmacros.h has existed
>at least since glibc 2.11 (ie, since 2010 or earlier), so I think
>that the patch is safe.

Thanks. It's been committed to the development stream.

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: Dave at Mielke.cc | Canada  K2A 1H7   | http://FamilyRadio.org/


More information about the BRLTTY mailing list