X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Ftstres.c;h=c617afb04ed789e93e56a32ef66549558e2f9960;hb=354f1142c4cc8c59b6f1170b95caec40bfe4d8c0;hp=12addcd26b3f785a36b13fb239df7c655fad25a7;hpb=6a0f9234f945bc4956e2bcef75f715661a9eba9a;p=idzebra-moved-to-github.git diff --git a/util/tstres.c b/util/tstres.c index 12addcd..c617afb 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) 1994-2011 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);