X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fdir.c;h=965ec8c27cddc1c4f0506eaddf7079c5b88533ef;hb=de044fbb534d2db022ca965d0328dac7a6edf032;hp=bb942cf2b712b9935cafc2637f75fcc7f7212ff8;hpb=6a0f9234f945bc4956e2bcef75f715661a9eba9a;p=idzebra-moved-to-github.git diff --git a/index/dir.c b/index/dir.c index bb942cf..965ec8c 100644 --- a/index/dir.c +++ b/index/dir.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 @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -137,7 +140,7 @@ void dir_sort(struct dir_entry *e) size_t nmemb = 0; while (e[nmemb].name) nmemb++; - qsort(e, nmemb, sizeof(*e), dir_cmp); + qsort(e, nmemb, sizeof(*e), dir_cmp); } void dir_free(struct dir_entry **e_p)