| 1 | diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
| 2 | index 0d57a3f..42a1584 100644
|
| 3 | |
| 4 | |
| 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)
|
| 13 | diff --git a/tests/test_getaddrinfo.c b/tests/test_getaddrinfo.c
|
| 14 | index 6de0323..0714e46 100644
|
| 15 | |
| 16 | |
| 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>
|
| 25 | diff --git a/tests/test_gethostby_name_addr.c b/tests/test_gethostby_name_addr.c
|
| 26 | index e8939f6..3ca0b68 100644
|
| 27 | |
| 28 | |
| 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>
|
| 37 | diff --git a/tests/test_gethostent.c b/tests/test_gethostent.c
|
| 38 | index aa61696..ea837ec 100644
|
| 39 | |
| 40 | |
| 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>
|
| 49 | diff --git a/tests/test_getnameinfo.c b/tests/test_getnameinfo.c
|
| 50 | index bfafa98..504798a 100644
|
| 51 | |
| 52 | |
| 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>
|
| 61 | diff --git a/tests/test_getpwuid_module.c b/tests/test_getpwuid_module.c
|
| 62 | index a06a49d..32acad5 100644
|
| 63 | |
| 64 | |
| 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 |
|
| 73 | diff --git a/tests/test_nwrap_disabled.c b/tests/test_nwrap_disabled.c
|
| 74 | index f00294b..3ef729a 100644
|
| 75 | |
| 76 | |
| 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>
|
| 85 | diff --git a/tests/test_nwrap_vector.c b/tests/test_nwrap_vector.c
|
| 86 | index 26baf01..cea2bfa 100644
|
| 87 | |
| 88 | |
| 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"
|
| 97 | diff --git a/tests/test_shadow.c b/tests/test_shadow.c
|
| 98 | index 7af120b..c6768ff 100644
|
| 99 | |
| 100 | |
| 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>
|
| 109 | diff --git a/tests/testsuite.c b/tests/testsuite.c
|
| 110 | index bf678fd..c69685c 100644
|
| 111 | |
| 112 | |
| 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>
|