aboutsummaryrefslogtreecommitdiffstats
path: root/main/libssh
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-09 13:05:49 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-09 13:05:49 +0000
commite1bf5a082780fb3b5846a601520730e273ec5ecc (patch)
treebac5acf95dc7e43a1208a615614facad20458402 /main/libssh
parent07fb56c6eedee9722b3c8daf4fceae972a841510 (diff)
downloadaports-e1bf5a082780fb3b5846a601520730e273ec5ecc.tar.bz2
aports-e1bf5a082780fb3b5846a601520730e273ec5ecc.tar.xz
main/libssh: fix musl build
Diffstat (limited to 'main/libssh')
-rw-r--r--main/libssh/APKBUILD13
-rw-r--r--main/libssh/fix-includes.patch10
2 files changed, 19 insertions, 4 deletions
diff --git a/main/libssh/APKBUILD b/main/libssh/APKBUILD
index 120117b1b5..521a5835bf 100644
--- a/main/libssh/APKBUILD
+++ b/main/libssh/APKBUILD
@@ -11,7 +11,9 @@ depends=
makedepends="openssl-dev cmake doxygen"
subpackages="$pkgname-dev"
source="https://red.libssh.org/attachments/download/51/libssh-$pkgver.tar.gz
- link-pthread.patch"
+ link-pthread.patch
+ fix-includes.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
@@ -43,8 +45,11 @@ package() {
}
md5sums="bb308196756c7255c0969583d917136b libssh-0.5.5.tar.gz
-8d58b3391286de4dad3eb8a5b70171aa link-pthread.patch"
+8d58b3391286de4dad3eb8a5b70171aa link-pthread.patch
+8257f5a2a6be16b158a83d76b5eed4fd fix-includes.patch"
sha256sums="c0df0f05fc812dbe26fd4118bec0776aa9e892c0719590f3971130489c6b8e9d libssh-0.5.5.tar.gz
-7a57c161357cb588e37a0b2e0b6a4a42505834da00e763ffe21141ed3a899169 link-pthread.patch"
+7a57c161357cb588e37a0b2e0b6a4a42505834da00e763ffe21141ed3a899169 link-pthread.patch
+d1798cd15d8682464a0b1b1853a9e17e63fed2fa732849570e595347d91b160c fix-includes.patch"
sha512sums="114a8d078b9530fe37f12c769283213ceacdd8cbf0c1c3e64e09c07d38b3886bc8c9a78816562ab1bc44c55c604fcc4ed85cdb2a8203962c9331f9d10977e802 libssh-0.5.5.tar.gz
-da26f14312a0988c72663225b6412ec06b2cdda6fdfd234f167f7fe9f1371fa432cb4c5d6326048540cffa527781203019023844870fe52c1b58631d8ca45b39 link-pthread.patch"
+da26f14312a0988c72663225b6412ec06b2cdda6fdfd234f167f7fe9f1371fa432cb4c5d6326048540cffa527781203019023844870fe52c1b58631d8ca45b39 link-pthread.patch
+055a8f6b97c65384a5a3ab8fe00c69d94cc30092fe926093dbbc122ce301fbe9d76127aa07b5e6107d7fa9dd2aad6b165fa0958b56520253b5d64428ff42a318 fix-includes.patch"
diff --git a/main/libssh/fix-includes.patch b/main/libssh/fix-includes.patch
new file mode 100644
index 0000000000..1151353698
--- /dev/null
+++ b/main/libssh/fix-includes.patch
@@ -0,0 +1,10 @@
+--- libssh-0.5.5.orig/include/libssh/libssh.h
++++ libssh-0.5.5/include/libssh/libssh.h
+@@ -57,6 +57,7 @@
+ typedef unsigned long long uint64_t;
+ typedef int mode_t;
+ #else /* _MSC_VER */
++ #include <sys/types.h>
+ #include <unistd.h>
+ #include <inttypes.h>
+ #endif /* _MSC_VER */