commit: c1d4aff3caa8c24d0f3cfad11ba4a9a9881c5fbc
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 20 11:54:19 2017 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jan 20 11:54:33 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1d4aff3
app-misc/screen: fix compilation error on Solaris
Package-Manager: portage-2.3.0
app-misc/screen/files/screen-4.5.0-solaris-PATH_MAX.patch | 12 ++++++++++++
app-misc/screen/screen-4.5.0.ebuild | 2 ++
2 files changed, 14 insertions(+)
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 00000000..1fafcf9
--- /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 e494a06..7ea62d1 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() {