3
0
Fork 0
forked from mirrors/nixpkgs

mpd: fix on i686

Was submtitted to upstream, but fix here in the meantime.
This commit is contained in:
Profpatsch 2017-02-12 22:27:11 +01:00
parent 939c846ae7
commit 21cb82f34b
2 changed files with 16 additions and 0 deletions

View file

@ -39,6 +39,8 @@ in stdenv.mkDerivation rec {
sha256 = "0a4psqsf71vc6hfgyv55jclsx8yb7lf4w840qlq6cq8j3hsjaavi";
};
patches = [ ./i386.patch ];
buildInputs = [ pkgconfig glib boost ]
++ opt stdenv.isDarwin darwin.apple_sdk.frameworks.CoreAudioKit
++ opt stdenv.isLinux systemd

View file

@ -0,0 +1,14 @@
diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
index 6986453..167fc07 100644
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
@@ -20,8 +20,8 @@
/* necessary because libavutil/common.h uses UINT64_C */
#define __STDC_CONSTANT_MACROS
-#include "lib/ffmpeg/Time.hxx"
#include "config.h"
+#include "lib/ffmpeg/Time.hxx"
#include "FfmpegDecoderPlugin.hxx"
#include "lib/ffmpeg/Domain.hxx"
#include "lib/ffmpeg/Error.hxx"