summaryrefslogtreecommitdiffstats
path: root/libraries/libproxy/gcc47-include-unistd.h.diff
diff options
context:
space:
mode:
author Robby Workman <rworkman@slackbuilds.org>2012-04-15 23:38:50 -0500
committer Robby Workman <rworkman@slackbuilds.org>2012-04-15 23:38:50 -0500
commitc4e1a92e0b14e056ad7a347d7bd2ccd968437af9 (patch)
tree3d8d4e1a67bc0ee286897f22bacbbf08e38ec985 /libraries/libproxy/gcc47-include-unistd.h.diff
parent32aa63932afd4ec700349652983091262db93e80 (diff)
downloadslackbuilds-c4e1a92e0b14e056ad7a347d7bd2ccd968437af9.tar.gz
slackbuilds-c4e1a92e0b14e056ad7a347d7bd2ccd968437af9.tar.xz
libraries/libproxy: Add unistd.h include for gcc47
Thanks to Shane Riddle <sh4neriddle@yahoo.com> for the report. Note that this is not an issue on 13.37 (gcc47 is in -currnet), but the fix won't hurt anything, and since I'm working on this in a private -current branch, I may as well fix it here too... Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libproxy/gcc47-include-unistd.h.diff')
-rw-r--r--libraries/libproxy/gcc47-include-unistd.h.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/libraries/libproxy/gcc47-include-unistd.h.diff b/libraries/libproxy/gcc47-include-unistd.h.diff
new file mode 100644
index 0000000000..fc08aeeae7
--- /dev/null
+++ b/libraries/libproxy/gcc47-include-unistd.h.diff
@@ -0,0 +1,22 @@
+diff -Nur libproxy-0.4.7.orig/libproxy/modules/config_sysconfig.cpp libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp
+--- libproxy-0.4.7.orig/libproxy/modules/config_sysconfig.cpp 2011-06-06 16:44:37.220019451 -0500
++++ libproxy-0.4.7/libproxy/modules/config_sysconfig.cpp 2012-04-15 23:35:45.752467960 -0500
+@@ -18,6 +18,7 @@
+ ******************************************************************************/
+
+ #include <sys/stat.h>
++#include <unistd.h>
+ #include <cstdlib>
+ #include <map>
+ #include <fstream>
+diff -Nur libproxy-0.4.7.orig/libproxy/url.cpp libproxy-0.4.7/libproxy/url.cpp
+--- libproxy-0.4.7.orig/libproxy/url.cpp 2011-06-06 16:44:37.216019447 -0500
++++ libproxy-0.4.7/libproxy/url.cpp 2012-04-15 23:35:05.654783125 -0500
+@@ -27,6 +27,7 @@
+ #define close _close
+ #endif
+ #include <fcntl.h> // For ::open()
++#include <unistd.h> //For close(), read()
+ #include <cstring> // For memcpy()
+ #include <sstream> // For int/string conversion (using stringstream)
+ #include <cstdio> // For sscanf()