aboutsummaryrefslogtreecommitdiffstats
path: root/main/vlc/uclibc-define-fminf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/vlc/uclibc-define-fminf.patch')
-rw-r--r--main/vlc/uclibc-define-fminf.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/vlc/uclibc-define-fminf.patch b/main/vlc/uclibc-define-fminf.patch
new file mode 100644
index 0000000000..7524b7dafe
--- /dev/null
+++ b/main/vlc/uclibc-define-fminf.patch
@@ -0,0 +1,17 @@
+diff -rupN a/src/audio_output/volume.c b/src/audio_output/volume.c
+--- a/src/audio_output/volume.c 2013-09-12 17:18:34.000000000 +0200
++++ b/src/audio_output/volume.c 2013-09-26 15:43:35.889675700 +0200
+@@ -33,6 +33,13 @@
+ #include <vlc_aout_volume.h>
+ #include "aout_internal.h"
+
++#ifdef __UCLIBC__
++float fminf(float a, float b)
++{
++ return (a < b) ? a : b;
++}
++#endif
++
+ struct aout_volume
+ {
+ audio_volume_t object;