projects/aports·blob master · refs

120 lines · 3.1 KiB

1diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
2index 0d57a3f..42a1584 100644
3--- a/tests/CMakeLists.txt
4+++ b/tests/CMakeLists.txt
5@@ -1,6 +1,6 @@
6 project(tests C)
7
8-set(TESTSUITE_LIBRARIES ${NWRAP_REQUIRED_LIBRARIES} ${CMOCKA_LIBRARY})
9+set(TESTSUITE_LIBRARIES ${NWRAP_REQUIRED_LIBRARIES} ${CMOCKA_LIBRARY} cmocka)
10 string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
11
12 add_library(nss_nwrap SHARED nss_nwrap.c)
13diff --git a/tests/test_getaddrinfo.c b/tests/test_getaddrinfo.c
14index 6de0323..0714e46 100644
15--- a/tests/test_getaddrinfo.c
16+++ b/tests/test_getaddrinfo.c
17@@ -3,6 +3,7 @@
18 #include <stdarg.h>
19 #include <stddef.h>
20 #include <setjmp.h>
21+#include <stdint.h>
22 #include <cmocka.h>
23
24 #include <errno.h>
25diff --git a/tests/test_gethostby_name_addr.c b/tests/test_gethostby_name_addr.c
26index e8939f6..3ca0b68 100644
27--- a/tests/test_gethostby_name_addr.c
28+++ b/tests/test_gethostby_name_addr.c
29@@ -5,6 +5,7 @@
30 #include <stdarg.h>
31 #include <stddef.h>
32 #include <setjmp.h>
33+#include <stdint.h>
34 #include <cmocka.h>
35
36 #include <errno.h>
37diff --git a/tests/test_gethostent.c b/tests/test_gethostent.c
38index aa61696..ea837ec 100644
39--- a/tests/test_gethostent.c
40+++ b/tests/test_gethostent.c
41@@ -3,6 +3,7 @@
42 #include <stdarg.h>
43 #include <stddef.h>
44 #include <setjmp.h>
45+#include <stdint.h>
46 #include <cmocka.h>
47
48 #include <stdio.h>
49diff --git a/tests/test_getnameinfo.c b/tests/test_getnameinfo.c
50index bfafa98..504798a 100644
51--- a/tests/test_getnameinfo.c
52+++ b/tests/test_getnameinfo.c
53@@ -3,6 +3,7 @@
54 #include <stdarg.h>
55 #include <stddef.h>
56 #include <setjmp.h>
57+#include <stdint.h>
58 #include <cmocka.h>
59
60 #include <stdio.h>
61diff --git a/tests/test_getpwuid_module.c b/tests/test_getpwuid_module.c
62index a06a49d..32acad5 100644
63--- a/tests/test_getpwuid_module.c
64+++ b/tests/test_getpwuid_module.c
65@@ -3,6 +3,7 @@
66 #include <stdarg.h>
67 #include <stddef.h>
68 #include <setjmp.h>
69+#include <stdint.h>
70 #include <cmocka.h>
71 #include <unistd.h>
72
73diff --git a/tests/test_nwrap_disabled.c b/tests/test_nwrap_disabled.c
74index f00294b..3ef729a 100644
75--- a/tests/test_nwrap_disabled.c
76+++ b/tests/test_nwrap_disabled.c
77@@ -3,6 +3,7 @@
78 #include <stdarg.h>
79 #include <stddef.h>
80 #include <setjmp.h>
81+#include <stdint.h>
82 #include <cmocka.h>
83
84 #include <sys/types.h>
85diff --git a/tests/test_nwrap_vector.c b/tests/test_nwrap_vector.c
86index 26baf01..cea2bfa 100644
87--- a/tests/test_nwrap_vector.c
88+++ b/tests/test_nwrap_vector.c
89@@ -3,6 +3,7 @@
90 #include <stdarg.h>
91 #include <stddef.h>
92 #include <setjmp.h>
93+#include <stdint.h>
94 #include <cmocka.h>
95
96 #include "../src/nss_wrapper.c"
97diff --git a/tests/test_shadow.c b/tests/test_shadow.c
98index 7af120b..c6768ff 100644
99--- a/tests/test_shadow.c
100+++ b/tests/test_shadow.c
101@@ -3,6 +3,7 @@
102 #include <stdarg.h>
103 #include <stddef.h>
104 #include <setjmp.h>
105+#include <stdint.h>
106 #include <cmocka.h>
107
108 #include <shadow.h>
109diff --git a/tests/testsuite.c b/tests/testsuite.c
110index bf678fd..c69685c 100644
111--- a/tests/testsuite.c
112+++ b/tests/testsuite.c
113@@ -3,6 +3,7 @@
114 #include <stdarg.h>
115 #include <stddef.h>
116 #include <setjmp.h>
117+#include <stdint.h>
118 #include <cmocka.h>
119
120 #include <errno.h>