aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_directory.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-30 18:35:02 +0000
committerChristian Grothoff <christian@grothoff.org>2015-05-30 18:35:02 +0000
commit93fba12ad8159dc6b683f9e7ce9f0528a11047f5 (patch)
tree73b1bd212c6c5a32adb924d208d8a315b606e854 /src/fs/test_fs_directory.c
parentcfd880578bd21f9adedba557291c903d325e93cd (diff)
downloadgnunet-93fba12ad8159dc6b683f9e7ce9f0528a11047f5.tar.gz
gnunet-93fba12ad8159dc6b683f9e7ce9f0528a11047f5.zip
make libextractor actually optional, both for GNUnet and GNUnet-taler builds
Diffstat (limited to 'src/fs/test_fs_directory.c')
-rw-r--r--src/fs/test_fs_directory.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fs/test_fs_directory.c b/src/fs/test_fs_directory.c
index bdbaf906f..4960b8922 100644
--- a/src/fs/test_fs_directory.c
+++ b/src/fs/test_fs_directory.c
@@ -17,15 +17,15 @@
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20
21/** 20/**
22 * @file fs/test_fs_directory.c 21 * @file fs/test_fs_directory.c
23 * @brief Test for fs_directory.c 22 * @brief Test for fs_directory.c
24 * @author Christian Grothoff 23 * @author Christian Grothoff
25 */ 24 */
26
27#include "platform.h" 25#include "platform.h"
26#if HAVE_EXTRACTOR_H
28#include <extractor.h> 27#include <extractor.h>
28#endif
29#include "gnunet_util_lib.h" 29#include "gnunet_util_lib.h"
30#include "gnunet_fs_service.h" 30#include "gnunet_fs_service.h"
31#include "fs_api.h" 31#include "fs_api.h"
@@ -99,7 +99,11 @@ testDirectory (unsigned int i)
99 { 99 {
100 GNUNET_snprintf (txt, sizeof (txt), "%u -- %u\n", p, q); 100 GNUNET_snprintf (txt, sizeof (txt), "%u -- %u\n", p, q);
101 GNUNET_CONTAINER_meta_data_insert (mds[p], "<test>", 101 GNUNET_CONTAINER_meta_data_insert (mds[p], "<test>",
102#if HAVE_EXTRACTOR_H
102 q % EXTRACTOR_metatype_get_max (), 103 q % EXTRACTOR_metatype_get_max (),
104#else
105 q % 128,
106#endif
103 EXTRACTOR_METAFORMAT_UTF8, 107 EXTRACTOR_METAFORMAT_UTF8,
104 "text/plain", txt, strlen (txt) + 1); 108 "text/plain", txt, strlen (txt) + 1);
105 } 109 }