X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fdir.c;h=965ec8c27cddc1c4f0506eaddf7079c5b88533ef;hp=0a59edb368a62bfd04a3ba36847ae2563741addc;hb=20e2d608e0cd383054e627db00264388affb58cd;hpb=a030c87bc444608639905eca95e29f84a4f1d991 diff --git a/index/dir.c b/index/dir.c index 0a59edb..965ec8c 100644 --- a/index/dir.c +++ b/index/dir.c @@ -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)