]> www.infradead.org Git - mtd-utils.git/commitdiff
unittests/test_lib: Include proper header for _IOC_SIZE
authorOlliver Schinagl <oliver@schinagl.nl>
Mon, 15 Apr 2019 08:20:29 +0000 (10:20 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Thu, 25 Apr 2019 06:24:31 +0000 (08:24 +0200)
The macro _IOC_SIZE is not part of sys/ioctl.h but lives in asm/ioctl.h
so we should include the proper header. If we do not, some systems
complain during linking that they cannot find the symbol _IOC_SIZE()
which was not expanded by the pre-compiler.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/unittests/test_lib.h

index 7a6a003310f3d9390f26d5e99f0b4dec72835ef5..cd94d9f9eeed0511c59d7bd8f0beba9c800d788c 100644 (file)
@@ -1,3 +1,4 @@
+#include <asm/ioctl.h>
 #include <stdarg.h>
 #include <setjmp.h>
 #include <stddef.h>