summaryrefslogtreecommitdiff
path: root/tools/mpfr/patches/100-freebsd-compat.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-02-05 16:58:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-02-05 16:58:10 +0000
commita854d5c4c96680bd72ee35c20cd2a297d7db546f (patch)
treece561b98e0b379f0c4772299bf22fa942430008a /tools/mpfr/patches/100-freebsd-compat.patch
parentd49242aae290a8f3d0bc84455ec9b8bda30c813c (diff)
downloadmtk-20170518-a854d5c4c96680bd72ee35c20cd2a297d7db546f.zip
mtk-20170518-a854d5c4c96680bd72ee35c20cd2a297d7db546f.tar.gz
mtk-20170518-a854d5c4c96680bd72ee35c20cd2a297d7db546f.tar.bz2
tools: Fix mpfr build on FreeBSD 10.1
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44279
Diffstat (limited to 'tools/mpfr/patches/100-freebsd-compat.patch')
-rw-r--r--tools/mpfr/patches/100-freebsd-compat.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/mpfr/patches/100-freebsd-compat.patch b/tools/mpfr/patches/100-freebsd-compat.patch
new file mode 100644
index 0000000..fa28a67
--- /dev/null
+++ b/tools/mpfr/patches/100-freebsd-compat.patch
@@ -0,0 +1,10 @@
+--- a/src/vasprintf.c
++++ b/src/vasprintf.c
+@@ -42,6 +42,7 @@ http://www.gnu.org/licenses/ or write to
+ #endif /* HAVE_VA_COPY */
+
+ #ifdef HAVE_WCHAR_H
++#include <stddef.h>
+ #include <wchar.h>
+ #endif
+