diff mbox series

[1/3] unittests/test_lib: Include proper header for _IOC_SIZE

Message ID 20190415082031.600-2-oliver@schinagl.nl
State Not Applicable
Headers show
Series [1/3] unittests/test_lib: Include proper header for _IOC_SIZE | expand

Commit Message

Olliver Schinagl April 15, 2019, 8:20 a.m. UTC
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>
---
 tests/unittests/test_lib.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/tests/unittests/test_lib.h b/tests/unittests/test_lib.h
index 7a6a003..cd94d9f 100644
--- a/tests/unittests/test_lib.h
+++ b/tests/unittests/test_lib.h
@@ -1,3 +1,4 @@ 
+#include <asm/ioctl.h>
 #include <stdarg.h>
 #include <setjmp.h>
 #include <stddef.h>