From: Florian Fainelli Date: Thu, 13 Mar 2014 16:52:10 +0000 (+0000) Subject: tctool: include unistd.h for close() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2c032b17221ab70eb809b59f467b07b16fcfd05d;p=openwrt%2Fsvn-archive%2Fpackages.git tctool: include unistd.h for close() We were failing the build due to a missing prototype for close(). Signed-off-by: Florian Fainelli SVN-Revision: 39921 --- diff --git a/net/tctool/Makefile b/net/tctool/Makefile index 36a508766..68e801c07 100644 --- a/net/tctool/Makefile +++ b/net/tctool/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tctool PKG_VERSION:=0.9.7 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip PKG_SOURCE_URL:=http://download2.berlios.de/speedmodem50b diff --git a/net/tctool/patches/001_Makefile_fix.diff b/net/tctool/patches/001_Makefile_fix.diff index ee7c4f578..8677c4e3e 100644 --- a/net/tctool/patches/001_Makefile_fix.diff +++ b/net/tctool/patches/001_Makefile_fix.diff @@ -1,7 +1,6 @@ -diff -ur tctool.old/src/Makefile tctool/src/Makefile ---- tctool.old/src/Makefile 2007-01-03 02:32:24.000000000 +0100 -+++ tctool/src/Makefile 2007-09-18 19:15:03.068155702 +0200 -@@ -31,16 +31,16 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -31,16 +31,16 @@ MAINOBJ := if.o interface.o etherStream EXAMPLE := example EXOBJ := if.o interface.o etherStream.o etherStreambuf.o tcStream.o tcStreambuf.o tcRtsDump.o tcRtsDumpbuf.o diff --git a/net/tctool/patches/005-fix-gcc_4_3-compile.patch b/net/tctool/patches/005-fix-gcc_4_3-compile.patch index 76008b902..3abe592c3 100644 --- a/net/tctool/patches/005-fix-gcc_4_3-compile.patch +++ b/net/tctool/patches/005-fix-gcc_4_3-compile.patch @@ -1,5 +1,3 @@ -diff --git a/src/tctool.cpp b/src/tctool.cpp -index bbab13f..9ce8e5c 100644 --- a/src/tctool.cpp +++ b/src/tctool.cpp @@ -33,6 +33,7 @@ diff --git a/net/tctool/patches/006-fix_close_declaration.patch b/net/tctool/patches/006-fix_close_declaration.patch new file mode 100644 index 000000000..387b4741b --- /dev/null +++ b/net/tctool/patches/006-fix_close_declaration.patch @@ -0,0 +1,20 @@ +--- a/src/etherStreambuf.cpp ++++ b/src/etherStreambuf.cpp +@@ -28,6 +28,7 @@ + #include "etherStreambuf.h" + + #include ++#include + + namespace tc { + etherStreambuf::etherStreambuf() { +--- a/src/tcStreambuf.cpp ++++ b/src/tcStreambuf.cpp +@@ -30,6 +30,7 @@ + // this is for the udp-part... + #include // gethostbyname hostent + #include // inet_ntoa ++#include + + namespace tc { + char tcStreambuf::tcPktType::confirmation(char pktType) {