Browse Source

Changes to build on Alpine Linux.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
pull/4/head
Daira Hopwood 8 years ago
parent
commit
0ee86d399e
  1. 1
      .gitignore
  2. 5
      depends/packages/boost.mk
  3. 11
      depends/patches/boost/include_poll.patch
  4. 2
      src/compat.h

1
.gitignore

@ -61,7 +61,6 @@ src/qt/test/moc*.cpp
*.pyc
*.o
*.o-*
*.patch
.zcash
*.a
*.pb.cc

5
depends/packages/boost.mk

@ -3,7 +3,7 @@ $(package)_version=1_62_0
$(package)_download_path=http://sourceforge.net/projects/boost/files/boost/1.62.0
$(package)_file_name=$(package)_$($(package)_version).tar.bz2
$(package)_sha256_hash=36c96b0f6155c98404091d8ceb48319a28279ca0333fba1ad8611eb90afb2ca0
$(package)_patches=deprecated_auto_ptr.patch
$(package)_patches=deprecated_auto_ptr.patch include_poll.patch
define $(package)_set_vars
$(package)_config_opts_release=variant=release
@ -27,7 +27,8 @@ endef
define $(package)_preprocess_cmds
echo "using $(boost_toolset_$(host_os)) : : $($(package)_cxx) : <cxxflags>\"$($(package)_cxxflags) $($(package)_cppflags)\" <linkflags>\"$($(package)_ldflags)\" <archiver>\"$(boost_archiver_$(host_os))\" <striper>\"$(host_STRIP)\" <ranlib>\"$(host_RANLIB)\" <rc>\"$(host_WINDRES)\" : ;" > user-config.jam && \
patch -p1 < $($(package)_patch_dir)/deprecated_auto_ptr.patch
patch -p1 < $($(package)_patch_dir)/deprecated_auto_ptr.patch && \
patch -p1 < $($(package)_patch_dir)/include_poll.patch
endef
define $(package)_config_cmds

11
depends/patches/boost/include_poll.patch

@ -0,0 +1,11 @@
--- boost_1_62_0-orig/boost/asio/detail/socket_types.hpp 2016-09-21 15:33:21.000000000 +0100
+++ boost_1_62_0/boost/asio/detail/socket_types.hpp 2016-10-18 03:08:41.712254217 +0100
@@ -58,7 +58,7 @@
#else
# include <sys/ioctl.h>
# if !defined(__SYMBIAN32__)
-# include <sys/poll.h>
+# include <poll.h>
# endif
# include <sys/types.h>
# include <sys/stat.h>

2
src/compat.h

@ -32,7 +32,7 @@
#include <windows.h>
#include <ws2tcpip.h>
#else
#include <sys/fcntl.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <sys/types.h>

Loading…
Cancel
Save