X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dict%2Fopen.c;h=1df9d986b3c9fde37f77a5195d3bf13ec8ddb2a3;hp=250a1d41e48aabfa5b8a6cfa03f7005d04171afc;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=a89d8384ad975fdddb2aa56e8c27b689a5e23f96 diff --git a/dict/open.c b/dict/open.c index 250a1d4..1df9d98 100644 --- a/dict/open.c +++ b/dict/open.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 @@ -19,6 +19,9 @@ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -38,9 +41,9 @@ void dict_clean(Dict dict) dict->head.freelist = 0; dict->head.page_size = page_size; dict->head.compact_flag = compact_flag; - + /* create header with information (page 0) */ - if (dict->rw) + if (dict->rw) dict_bf_newp(dict->dbf, 0, &head_buf, page_size); }