aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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
commitb59c2b7ff4993f8ddbf440f255700679447f86aa (patch)
tree14c9ed63a1b5f872fc83fa5b35c0c4deae33961c /tools
parent75ea8c12e93261d442cb4b49f502568046752ce8 (diff)
downloadmaster-187ad058-b59c2b7ff4993f8ddbf440f255700679447f86aa.tar.gz
master-187ad058-b59c2b7ff4993f8ddbf440f255700679447f86aa.tar.bz2
master-187ad058-b59c2b7ff4993f8ddbf440f255700679447f86aa.zip
tools: Fix mpfr build on FreeBSD 10.1
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44279 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/mpfr/patches/001-only_src.patch2
-rw-r--r--tools/mpfr/patches/100-freebsd-compat.patch10
2 files changed, 11 insertions, 1 deletions
diff --git a/tools/mpfr/patches/001-only_src.patch b/tools/mpfr/patches/001-only_src.patch
index e6579b2118..51a75b44b5 100644
--- a/tools/mpfr/patches/001-only_src.patch
+++ b/tools/mpfr/patches/001-only_src.patch
@@ -11,7 +11,7 @@
examples/ReadMe examples/divworst.c examples/rndo-add.c examples/sample.c \
--- a/Makefile.in
+++ b/Makefile.in
-@@ -294,7 +294,7 @@ top_builddir = @top_builddir@
+@@ -295,7 +295,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = gnu
ACLOCAL_AMFLAGS = -I m4
diff --git a/tools/mpfr/patches/100-freebsd-compat.patch b/tools/mpfr/patches/100-freebsd-compat.patch
new file mode 100644
index 0000000000..fa28a67d95
--- /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
+