Skip to content

Commit

Permalink
Include <sys/sysmacros.h> to prevent build breakage with >=glibc-2.25
Browse files Browse the repository at this point in the history
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2
-pipe -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -o
mkudffs main.o mkudffs.o defaults.o file.o options.o
../libudffs/.libs/libudffs.a
main.o: In function `is_whole_disk':
main.c:(.text+0x2ce): undefined reference to `major'
main.c:(.text+0x2dd): undefined reference to `minor'
main.o: In function `main':
main.c:(.text.startup+0x72f): undefined reference to `minor'
main.c:(.text.startup+0x741): undefined reference to `major'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:378: mkudffs] Error 1
  • Loading branch information
Lars Wendler committed Jan 2, 2018
1 parent 6f84f28 commit cca194f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mkudffs/main.c
Expand Up @@ -43,6 +43,7 @@
#include <sys/ioctl.h>
#include <linux/fs.h>
#include <linux/fd.h>
#include <sys/sysmacros.h>

#include "mkudffs.h"
#include "defaults.h"
Expand Down

0 comments on commit cca194f

Please sign in to comment.