packages/net/tctool/patches/006-fix_close_declaration.patch
florian 75097a215d tctool: include unistd.h for close()
We were failing the build due to a missing prototype for close().

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

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39921 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-13 16:52:10 +00:00

21 lines
502 B
Diff

--- 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) {