$NetBSD: patch-ad,v 1.8 2006/02/15 02:53:29 minskim Exp $

--- lib/ast/pathpath.c.orig	2005-08-28 05:47:29.000000000 -0700
+++ lib/ast/pathpath.c
@@ -33,7 +33,14 @@
 #include <unistd.h>
 
 /* #include <option.h> */
+#ifdef HAVE_CRT_EXTERNS_H
+#include <crt_externs.h>
+#endif
+#ifdef HAVE__NSGETENVIRON
+#define environ (*_NSGetEnviron())
+#else
 extern char **environ;
+#endif
 char **opt_info_argv;
 
 char *pathpath(register char *path, const char *p, const char *a, int mode)
