diff options
author | Fabian Groffen <grobian@gentoo.org> | 2017-01-20 12:54:19 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2017-01-20 12:54:33 +0100 |
commit | c1d4aff3caa8c24d0f3cfad11ba4a9a9881c5fbc (patch) | |
tree | e749509b20486027b5cacbfc6ac9b10149b490e5 /app-misc/screen | |
parent | dev-python/pyopengl: ppc64 stable wrt bug #606292 (diff) | |
download | gentoo-c1d4aff3caa8c24d0f3cfad11ba4a9a9881c5fbc.tar.gz gentoo-c1d4aff3caa8c24d0f3cfad11ba4a9a9881c5fbc.tar.bz2 gentoo-c1d4aff3caa8c24d0f3cfad11ba4a9a9881c5fbc.zip |
app-misc/screen: fix compilation error on Solaris
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-misc/screen')
-rw-r--r-- | app-misc/screen/files/screen-4.5.0-solaris-PATH_MAX.patch | 12 | ||||
-rw-r--r-- | app-misc/screen/screen-4.5.0.ebuild | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/app-misc/screen/files/screen-4.5.0-solaris-PATH_MAX.patch b/app-misc/screen/files/screen-4.5.0-solaris-PATH_MAX.patch new file mode 100644 index 000000000000..1fafcf9a87c2 --- /dev/null +++ b/app-misc/screen/files/screen-4.5.0-solaris-PATH_MAX.patch @@ -0,0 +1,12 @@ +On Solaris one needs to include limits.h in order to use PATH_MAX + +--- screen-4.5.0/screen.c ++++ screen-4.5.0/screen.c +@@ -44,6 +44,7 @@ + #endif + #include <ctype.h> + #include <fcntl.h> ++#include <limits.h> + + #ifdef sgi + # include <sys/sysmacros.h> diff --git a/app-misc/screen/screen-4.5.0.ebuild b/app-misc/screen/screen-4.5.0.ebuild index e494a069d2e0..7ea62d184fb9 100644 --- a/app-misc/screen/screen-4.5.0.ebuild +++ b/app-misc/screen/screen-4.5.0.ebuild @@ -36,6 +36,8 @@ DEPEND="${CDEPEND} PATCHES=( # Don't use utempter even if it is found on the system. "${FILESDIR}"/${PN}-4.3.0-no-utempter.patch + # PATH_MAX usage needs an include on Solaris + "${FILESDIR}"/${P}-solaris-PATH_MAX.patch ) pkg_setup() { |