putty: unbreak musl with Alpine patches and -Wno-error.

This commit is contained in:
Juan RP 2015-11-11 08:48:52 +01:00
parent dc022c7a98
commit 61c79851a1
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,12 @@
--- sshbn.h.orig
+++ sshbn.h
@@ -26,7 +26,8 @@
* using the same 'two machine registers' kind of code generation that
* 32-bit targets use for 64-bit ints. If we have one of these, we can
* use a 64-bit BignumInt and a 128-bit BignumDblInt. */
-typedef __uint64_t BignumInt;
+#include <stdint.h>
+typedef uint64_t BignumInt;
typedef __uint128_t BignumDblInt;
#define BIGNUM_INT_MASK 0xFFFFFFFFFFFFFFFFULL
#define BIGNUM_TOP_BIT 0x8000000000000000ULL

View File

@ -0,0 +1,10 @@
--- unix/uxcons.c
+++ unix/uxcons.c
@@ -8,6 +8,7 @@
#include <stdarg.h>
#include <assert.h>
#include <errno.h>
+#include <sys/select.h>
#include <termios.h>
#include <unistd.h>

View File

@ -1,7 +1,8 @@
# Template file for 'putty'
pkgname=putty
version=0.66
revision=1
revision=2
build_pie=yes
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="gtk+-devel"
@ -11,3 +12,5 @@ license="MIT"
homepage="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
distfiles="http://the.earth.li/~sgtatham/putty/latest/putty-${version}.tar.gz"
checksum=fe7312f66c54865868b362f4b79bd1fbe7ce9e8b1fd504b04034182db1f32993
CFLAGS="-Wno-error"