libproxy: portability patches from Alpine.

This commit is contained in:
Juan RP 2015-05-09 11:07:23 +02:00
parent e580005fda
commit feb1904f6b
3 changed files with 51 additions and 2 deletions

View File

@ -0,0 +1,10 @@
--- libproxy/test/get-pac-test.cpp
+++ libproxy/test/get-pac-test.cpp
@@ -3,6 +3,7 @@
#include <sstream>
#include <string>
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

View File

@ -0,0 +1,40 @@
--- libproxy/url.cpp.orig 2012-02-28 21:05:15.572948027 +0000
+++ libproxy/url.cpp 2012-02-28 21:05:45.635937474 +0000
@@ -27,6 +27,7 @@
#define close _close
#endif
#include <fcntl.h> // For ::open()
+#include <unistd.h> // For ::read() and ::close()
#include <cstring> // For memcpy()
#include <sstream> // For int/string conversion (using stringstream)
#include <cstdio> // For sscanf()
--- libproxy/modules/config_sysconfig.cpp.orig 2012-02-28 21:06:01.552943358 +0000
+++ libproxy/modules/config_sysconfig.cpp 2012-02-28 21:11:21.429953982 +0000
@@ -18,6 +18,7 @@
******************************************************************************/
#include <sys/stat.h>
+#include <unistd.h>
#include <cstdlib>
#include <map>
#include <fstream>
--- libproxy/modules/pacrunner_mozjs.cpp.orig 2012-02-28 21:06:11.637943033 +0000
+++ libproxy/modules/pacrunner_mozjs.cpp 2012-02-28 21:11:46.560961409 +0000
@@ -17,6 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
+#include <unistd.h> // for ::gethostname()
#include <cstring> // ?
#include "../extension_pacrunner.hpp"
--- libproxy/modules/pacrunner_webkit.cpp.orig 2012-02-28 21:06:29.615943614 +0000
+++ libproxy/modules/pacrunner_webkit.cpp 2012-02-28 21:12:35.530965553 +0000
@@ -17,6 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
+#include <unistd.h> // for ::gethostname()
#include "../extension_pacrunner.hpp"
using namespace libproxy;

View File

@ -1,7 +1,7 @@
# Template file for 'libproxy' # Template file for 'libproxy'
pkgname=libproxy pkgname=libproxy
version=0.4.11 version=0.4.11
revision=1 revision=2
build_style=cmake build_style=cmake
configure_args="-DWITH_GNOME=0 -DWITH_KDE4=0 -DWITH_MOZJS=0 -DWITH_NM=0 configure_args="-DWITH_GNOME=0 -DWITH_KDE4=0 -DWITH_MOZJS=0 -DWITH_NM=0
-DWITH_PERL=0 -DWITH_PYTHON=1 -DWITH_WEBKIT=0" -DWITH_PERL=0 -DWITH_PYTHON=1 -DWITH_WEBKIT=0"
@ -24,7 +24,6 @@ libproxy-devel_package() {
vmove "usr/lib/*.so" vmove "usr/lib/*.so"
} }
} }
libproxy-python_package() { libproxy-python_package() {
depends="libproxy>=${version} python" depends="libproxy>=${version} python"
short_desc+=" - python bindings" short_desc+=" - python bindings"