diff --git a/srcpkgs/xterm/patches/musl.patch b/srcpkgs/xterm/patches/musl.patch new file mode 100644 index 00000000000..5108acbac6b --- /dev/null +++ b/srcpkgs/xterm/patches/musl.patch @@ -0,0 +1,21 @@ +--- main.c.orig 2015-08-19 00:25:35.000000000 +0000 ++++ main.c 2015-08-28 23:43:21.631378928 +0000 +@@ -2628,7 +2628,7 @@ + + #if defined(USE_OPENPTY) + result = openpty(pty, &opened_tty, ttydev, NULL, NULL); +-#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME) && defined(HAVE_GRANTPT_PTY_ISATTY) ++#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME) + if ((*pty = posix_openpt(O_RDWR)) >= 0) { + char *name = ptsname(*pty); + if (name != 0) { +@@ -3708,7 +3708,7 @@ + /* + * now in child process + */ +-#if defined(_POSIX_SOURCE) || defined(SVR4) || defined(__convex__) || defined(__SCO__) || defined(__QNX__) ++#if defined(_POSIX_VERSION) || defined(SVR4) || defined(__convex__) || defined(__SCO__) || defined(__QNX__) + int pgrp = setsid(); /* variable may not be used... */ + #else + int pgrp = getpid(); + diff --git a/srcpkgs/xterm/template b/srcpkgs/xterm/template index 3f4bf08afed..678ff3d7f8e 100644 --- a/srcpkgs/xterm/template +++ b/srcpkgs/xterm/template @@ -1,7 +1,7 @@ # Template file for 'xterm' pkgname=xterm version=319 -revision=1 +revision=2 build_pie=yes build_style=gnu-configure configure_args="--enable-wide-chars --enable-88-color --enable-broken-osc