diff options
Diffstat (limited to 'src/util/test_container_meta_data.c')
-rw-r--r-- | src/util/test_container_meta_data.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util/test_container_meta_data.c b/src/util/test_container_meta_data.c index a3729fc9f..df6587efd 100644 --- a/src/util/test_container_meta_data.c +++ b/src/util/test_container_meta_data.c | |||
@@ -27,6 +27,8 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_util_lib.h" | 28 | #include "gnunet_util_lib.h" |
29 | 29 | ||
30 | #if HAVE_EXTRACTOR_H | ||
31 | |||
30 | #define ABORT(m) { fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); if (m != NULL) GNUNET_CONTAINER_meta_data_destroy(m); return 1; } | 32 | #define ABORT(m) { fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); if (m != NULL) GNUNET_CONTAINER_meta_data_destroy(m); return 1; } |
31 | 33 | ||
32 | static int | 34 | static int |
@@ -343,4 +345,16 @@ main (int argc, char *argv[]) | |||
343 | return 0; | 345 | return 0; |
344 | } | 346 | } |
345 | 347 | ||
348 | #else | ||
349 | |||
350 | int | ||
351 | main (int argc, char *argv[]) | ||
352 | { | ||
353 | fprintf (stderr, | ||
354 | "GNU libextractor not found, skipping test.\n"); | ||
355 | return 0; | ||
356 | } | ||
357 | |||
358 | #endif | ||
359 | |||
346 | /* end of test_container_meta_data.c */ | 360 | /* end of test_container_meta_data.c */ |