packages/net/tctool/patches/005-fix-gcc_4_3-compile.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

11 lines
267 B
Diff

--- a/src/tctool.cpp
+++ b/src/tctool.cpp
@@ -33,6 +33,7 @@
#include <string.h>
#include <unistd.h>
#include <signal.h>
+#include <cstdlib>
std::string options = "I:m:i:r:t:p:c:MUdsSCRh";
std::string ethDev = "eth0";