X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ftest_create_databases.c;h=0cb38f0be8e25681d59e8b68a3b447a2919a607a;hp=2ba7bd63d7e38da467c1cb832ef20e30a21d9ab5;hb=HEAD;hpb=89d16cf15eda0e4802d18b8ad09bd3653508ebfc diff --git a/test/api/test_create_databases.c b/test/api/test_create_databases.c index 2ba7bd6..0cb38f0 100644 --- a/test/api/test_create_databases.c +++ b/test/api/test_create_databases.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2009 Index Data + Copyright (C) Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /** Create many databases */ +#if HAVE_CONFIG_H +#include +#endif #include "testlib.h" static void tst(int argc, char **argv) @@ -34,7 +37,7 @@ static void tst(int argc, char **argv) zh = zebra_open(zs, 0); YAZ_CHECK(zh); - + YAZ_CHECK(zebra_begin_trans (zh, 1) == ZEBRA_OK); for (i = 0; ititle %d\n", i); zebra_add_record (zh, rec_buf, strlen(rec_buf)); @@ -79,6 +82,7 @@ TL_MAIN /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab