Package: tntnet / 2.2.1-3

fix_gcc47.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Include unistd.h to fix FTBFS with gcc-4.7
 tntnet (2.1-1ubuntu1) quantal; urgency=low
 .
   * Add missing header to fix FTBFS with gcc4.7 on non-amd64 archs
Author: Micah Gersten <micahg@ubuntu.com>

Index: tntnet-2.2/framework/defcomp/static.cpp
===================================================================
--- tntnet-2.2.orig/framework/defcomp/static.cpp	2013-04-21 22:13:57.000000000 +0300
+++ tntnet-2.2/framework/defcomp/static.cpp	2013-05-19 23:12:17.000000000 +0300
@@ -34,6 +34,7 @@
 #include <tnt/http.h>
 #include <tnt/httpheader.h>
 #include <tnt/comploader.h>
+#include <unistd.h>
 #include <fstream>
 #include <cxxtools/log.h>
 #include <cxxtools/systemerror.h>