Skip to content

Commit

Permalink
iperf: Fix compilation with libcxx
Browse files Browse the repository at this point in the history
Avoids redefining bool.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and hauke committed Dec 22, 2019
1 parent 6041eb9 commit fd211e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package/network/utils/iperf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=iperf
PKG_VERSION:=2.0.13
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=c88adec966096a81136dda91b4bd19c27aae06df4d45a7f547a8e50d723778ad
Expand Down
12 changes: 12 additions & 0 deletions package/network/utils/iperf/patches/010-libcxx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/config.h.in
+++ b/config.h.in
@@ -360,7 +360,9 @@
#undef _REENTRANT

/* */
+#ifndef __cplusplus
#undef bool
+#endif

/* Define to empty if `const' does not conform to ANSI C. */
#undef const

0 comments on commit fd211e1

Please sign in to comment.