• Adrian Reber's avatar
    zdtm: fix '"makedev" is defined by <sys/sysmacros.h>' · 9a5ff1a0
    Adrian Reber authored
    Compiling zdtm on the latest Fedora rawhide gives errors like this:
    
    ns.c: In function ‘prepare_mntns’:
    ns.c:122:13: error: 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>. [-Werror]
       if (mknod("/dev/ptmx", 0666 | S_IFCHR, makedev(5, 2)) == 0) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    
    This commit fixes those errors.
    
    travis-ci: success for zdtm: fix '"makedev" is defined by <sys/sysmacros.h>'
    Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    9a5ff1a0
Name
Last commit
Last update
..
arch Loading commit data...
Makefile Loading commit data...
cpuid.h Loading commit data...
datagen.c Loading commit data...
fs.c Loading commit data...
fs.h Loading commit data...
groups.c Loading commit data...
groups.desc Loading commit data...
lock.c Loading commit data...
lock.h Loading commit data...
msg.c Loading commit data...
ns.c Loading commit data...
ns.h Loading commit data...
parseargs.c Loading commit data...
parseargs.sh Loading commit data...
stop_and_chk.sh Loading commit data...
streamutil.c Loading commit data...
tcp.c Loading commit data...
test.c Loading commit data...
zdtmtst.h Loading commit data...