tctool: include unistd.h for close()
authorFlorian Fainelli <florian@openwrt.org>
Thu, 13 Mar 2014 16:52:10 +0000 (16:52 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 13 Mar 2014 16:52:10 +0000 (16:52 +0000)
We were failing the build due to a missing prototype for close().

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 39921

net/tctool/Makefile
net/tctool/patches/001_Makefile_fix.diff
net/tctool/patches/005-fix-gcc_4_3-compile.patch
net/tctool/patches/006-fix_close_declaration.patch [new file with mode: 0644]

index 36a5087664b439c86cfb992a54b173cfd4245e06..68e801c07d5bf57eeef4185fe89294100e04db87 100644 (file)
@@ -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
index ee7c4f578fd980995a573a47b13abf8fc43e20e9..8677c4e3ed6aef8bdf1a0af21a69cf0ab0b12d51 100644 (file)
@@ -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
  
index 76008b902a304bb43d106ee6c24e3b242505eb4e..3abe592c3164b1c43a43a6abb25edc1aa3082748 100644 (file)
@@ -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 (file)
index 0000000..387b474
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/src/etherStreambuf.cpp
++++ b/src/etherStreambuf.cpp
+@@ -28,6 +28,7 @@
+ #include "etherStreambuf.h"
+ #include <stdio.h>
++#include <unistd.h>
+ namespace tc {
+    etherStreambuf::etherStreambuf() {
+--- a/src/tcStreambuf.cpp
++++ b/src/tcStreambuf.cpp
+@@ -30,6 +30,7 @@
+ // this is for the udp-part...
+ #include <netdb.h>         // gethostbyname hostent
+ #include <arpa/inet.h>     // inet_ntoa
++#include <unistd.h>
+ namespace tc {
+    char tcStreambuf::tcPktType::confirmation(char pktType) {