X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Ftstres.c;h=4dc1ac48f5b644138f661309aa6963f65a0a7a7c;hp=74560682a9e9f41837572621769dfbce2844908b;hb=a46c5e1b8973968a2c757e187cd50eed7eaf7cc8;hpb=89d16cf15eda0e4802d18b8ad09bd3653508ebfc diff --git a/util/tstres.c b/util/tstres.c index 7456068..4dc1ac4 100644 --- a/util/tstres.c +++ b/util/tstres.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2009 Index Data + Copyright (C) 2004-2013 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 @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -61,7 +64,7 @@ static void tst_res_read_file(void) const char *v; char path[1024]; int r; - + yaz_snprintf(path, sizeof(path), "%s/tstres.cfg", get_srcdir()); r = res_read_file(res, path); YAZ_CHECK_EQ(r, ZEBRA_OK); @@ -92,6 +95,7 @@ int main (int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab