Provide necessary macros from Jansson 2.5+ when using old versions
[trust_router.git] / common / tests / filt_test.c
index 00caf48..e86f1bb 100644 (file)
@@ -37,7 +37,9 @@
 #include <assert.h>
 #include <string.h>
 #include <jansson.h>
-
+#if JANSSON_VERSION_HEX < 0x020500
+#include "../jansson_iterators.h"
+#endif
 #include <trp_internal.h>
 #include <tid_internal.h>
 #include <tr_filter.h>
@@ -267,4 +269,4 @@ int main(void)
   assert(test_filter());
   printf("Success\n");
   return 0;
-}
\ No newline at end of file
+}