summaryrefslogtreecommitdiff
path: root/lang/japhar/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'lang/japhar/patches/patch-ac')
-rw-r--r--lang/japhar/patches/patch-ac18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/japhar/patches/patch-ac b/lang/japhar/patches/patch-ac
new file mode 100644
index 00000000000..97b5994fcd5
--- /dev/null
+++ b/lang/japhar/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/10/28 09:51:43 agc Exp $
+
+Pick up PATH_MAX from <limits.h> on Solaris
+
+--- lib/libnative/java.io/file.c 1999/10/19 11:16:37 1.1
++++ lib/libnative/java.io/file.c 1999/10/19 11:17:59
+@@ -46,6 +46,11 @@
+ # include <direct.h>
+ #endif
+
++/* On Solaris, include <limits.h> to pick up PATH_MAX */
++#if defined(__sun__) && defined(__svr4__)
++#include <limits.h>
++#endif
++
+ /**
+ * WARNING: returned pointer must be freed by caller
+ */