pkgsrc/lang/japhar/patches/patch-ad
1999-10-28 09:51:43 +00:00

18 lines
492 B
Text

$NetBSD: patch-ad,v 1.1.1.1 1999/10/28 09:51:43 agc Exp $
On Solaris, pick up PATH_MAX from <limits.h>
--- lib/libnative/java.io/unixfilesystem.c 1999/10/19 11:19:27 1.1
+++ lib/libnative/java.io/unixfilesystem.c 1999/10/19 11:19:53
@@ -47,6 +47,11 @@
#include <utime.h>
#endif
+/* On Solaris, include <limits.h> to pick up PATH_MAX */
+#if defined(__sun__) && defined(__svr4__)
+#include <limits.h>
+#endif
+
static jint BA_EXISTS;
static jint BA_REGULAR;
static jint BA_DIRECTORY;