summaryrefslogtreecommitdiff
path: root/lang/japhar/patches/patch-ac
blob: 97b5994fcd5df876ffa5cc3d1f959736906570bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
  */