summaryrefslogtreecommitdiffstats
path: root/main/vlc/uclibc-define-fminf.patch
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <b@bpiotrowski.pl>2013-09-26 15:48:07 +0200
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2013-09-26 15:48:07 +0200
commit5439919afc7fc34e82c619693bfa913d52b26fda (patch)
treeea046bc2f5b9dba0e16724ba9509e6e835ed23e7 /main/vlc/uclibc-define-fminf.patch
parent73a54576d1203ac707c7634e25a3730c2ef2f9a6 (diff)
downloadaports-5439919afc7fc34e82c619693bfa913d52b26fda.tar.bz2
aports-5439919afc7fc34e82c619693bfa913d52b26fda.tar.xz
main/vlc: define fminf in src/audio_output/volume.c
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 000000000..7524b7daf
--- /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;