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

18 lines
462 B
Text

$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
*/