diff --git a/src/format_mp3.c b/src/format_mp3.c index f46e6dc2..6f670be7 100644 --- a/src/format_mp3.c +++ b/src/format_mp3.c @@ -16,6 +16,10 @@ # include #endif +#ifdef HAVE_ALLOCA_H +#include +#endif + #include "refbuf.h" #include "source.h" #include "client.h" diff --git a/src/main.c b/src/main.c index 6797100b..f26d7485 100644 --- a/src/main.c +++ b/src/main.c @@ -19,6 +19,10 @@ #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif + #include "cfgfile.h" #include "sighandler.h" diff --git a/src/xslt.c b/src/xslt.c index 20688a93..cd59cdb2 100644 --- a/src/xslt.c +++ b/src/xslt.c @@ -73,7 +73,7 @@ void xslt_shutdown() { } static int evict_cache_entry() { - int i, age=0, oldest; + int i, age=0, oldest=0; for(i=0; i < CACHESIZE; i++) { if(cache[i].cache_age > age) {