From 8b42aff63deaacc0ba0081c974eb4f6a462d53f3 Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Thu, 28 May 2015 14:09:13 +0200 Subject: [PATCH] Fix metadata.c includes (esp. for stat()) --- src/metadata.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/metadata.c b/src/metadata.c index a246627..8383b3f 100644 --- a/src/metadata.c +++ b/src/metadata.c @@ -18,10 +18,21 @@ # include "config.h" #endif -#include "ezstream.h" - #include "compat.h" +#include + +#include +#include +#include +#if defined(HAVE_LIBGEN_H) && !defined(__linux__) +# include +#endif /* HAVE_LIBGEN_H && !__linux__ */ +#include +#include +#include +#include + #ifdef HAVE_TAGLIB # include #endif /* HAVE_TAGLIB */ @@ -30,8 +41,6 @@ #endif /* HAVE_VORBISFILE */ #include -#include - #include "log.h" #include "metadata.h" #include "util.h"