summaryrefslogtreecommitdiff
path: root/graphics/graphviz/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/graphviz/patches/patch-ad')
-rw-r--r--graphics/graphviz/patches/patch-ad19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/graphviz/patches/patch-ad b/graphics/graphviz/patches/patch-ad
new file mode 100644
index 00000000000..a9a1896b519
--- /dev/null
+++ b/graphics/graphviz/patches/patch-ad
@@ -0,0 +1,19 @@
+$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)