From 287c70e3611022ff40c673feeef71eecd79beea8 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Mon, 11 Nov 2013 08:17:29 +0100
Subject: [PATCH] filter/route, ...: add missing stdlib.h includes

---
 NEWS                              | 1 +
 src/SongSave.cxx                  | 1 +
 src/encoder/OpusEncoderPlugin.cxx | 1 +
 src/filter/RouteFilterPlugin.cxx  | 1 +
 test/run_convert.cxx              | 1 +
 5 files changed, 5 insertions(+)

diff --git a/NEWS b/NEWS
index 47fda34cc..895d00bf5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 ver 0.18.4 (not yet released)
 * decoder
   - dsdiff: fix byte order bug
+* fix build failures due to missing includes
 
 ver 0.18.3 (2013/11/08)
 * fix stuck MPD after song change (0.18.2 regression)
diff --git a/src/SongSave.cxx b/src/SongSave.cxx
index ae055729d..63e279a16 100644
--- a/src/SongSave.cxx
+++ b/src/SongSave.cxx
@@ -30,6 +30,7 @@
 #include "util/Domain.hxx"
 
 #include <string.h>
+#include <stdlib.h>
 
 #define SONG_MTIME "mtime"
 #define SONG_END "song_end"
diff --git a/src/encoder/OpusEncoderPlugin.cxx b/src/encoder/OpusEncoderPlugin.cxx
index 29f7df726..243dc0836 100644
--- a/src/encoder/OpusEncoderPlugin.cxx
+++ b/src/encoder/OpusEncoderPlugin.cxx
@@ -34,6 +34,7 @@
 #include <glib.h>
 
 #include <assert.h>
+#include <stdlib.h>
 
 struct opus_encoder {
 	/** the base class */
diff --git a/src/filter/RouteFilterPlugin.cxx b/src/filter/RouteFilterPlugin.cxx
index c0b0be242..d9042c21f 100644
--- a/src/filter/RouteFilterPlugin.cxx
+++ b/src/filter/RouteFilterPlugin.cxx
@@ -56,6 +56,7 @@
 #include <assert.h>
 #include <string.h>
 #include <stdint.h>
+#include <stdlib.h>
 
 class RouteFilter final : public Filter {
 	/**
diff --git a/test/run_convert.cxx b/test/run_convert.cxx
index ca55bcc0b..0e873a3b3 100644
--- a/test/run_convert.cxx
+++ b/test/run_convert.cxx
@@ -36,6 +36,7 @@
 
 #include <assert.h>
 #include <stddef.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 static void