summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2019-04-15 10:20:29 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-04-25 08:24:31 +0200
commit55bb679ce5aadd6ce17f9df76d5367f41846366f (patch)
tree15d73bb8ddb64d77118a366d7a474909c7e37183
parent2a26da4468197884d1381bffafe9161453863505 (diff)
unittests/test_lib: Include proper header for _IOC_SIZE
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>
-rw-r--r--tests/unittests/test_lib.h1
1 files changed, 1 insertions, 0 deletions
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>