Magellan Linux

Contents of /trunk/libproxy/libproxy-0.4.7-unistd.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1916 - (show annotations) (download)
Mon Oct 15 19:01:09 2012 UTC (11 years, 6 months ago) by niro
File size: 1783 byte(s)
-added build fixes
1 --- libproxy-0.4.7/libproxy/url.cpp.orig 2012-02-28 21:05:15.572948027 +0000
2 +++ libproxy-0.4.7/libproxy/url.cpp 2012-02-28 21:05:45.635937474 +0000
3 @@ -27,6 +27,7 @@
4 #define close _close
5 #endif
6 #include <fcntl.h> // For ::open()
7 +#include <unistd.h> // For ::read() and ::close()
8 #include <cstring> // For memcpy()
9 #include <sstream> // For int/string conversion (using stringstream)
10 #include <cstdio> // For sscanf()
11 --- libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp.orig 2012-02-28 21:06:01.552943358 +0000
12 +++ libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp 2012-02-28 21:11:21.429953982 +0000
13 @@ -18,6 +18,7 @@
14 ******************************************************************************/
15
16 #include <sys/stat.h>
17 +#include <unistd.h>
18 #include <cstdlib>
19 #include <map>
20 #include <fstream>
21 --- libproxy-0.4.7/libproxy/modules/pacrunner_mozjs.cpp.orig 2012-02-28 21:06:11.637943033 +0000
22 +++ libproxy-0.4.7/libproxy/modules/pacrunner_mozjs.cpp 2012-02-28 21:11:46.560961409 +0000
23 @@ -17,6 +17,7 @@
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 ******************************************************************************/
26
27 +#include <unistd.h> // for ::gethostname()
28 #include <cstring> // ?
29
30 #include "../extension_pacrunner.hpp"
31 --- libproxy-0.4.7/libproxy/modules/pacrunner_webkit.cpp.orig 2012-02-28 21:06:29.615943614 +0000
32 +++ libproxy-0.4.7/libproxy/modules/pacrunner_webkit.cpp 2012-02-28 21:12:35.530965553 +0000
33 @@ -17,6 +17,7 @@
34 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
35 ******************************************************************************/
36
37 +#include <unistd.h> // for ::gethostname()
38 #include "../extension_pacrunner.hpp"
39 using namespace libproxy;