summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2005-11-09 21:55:54 +0000
committerFabian Groffen <grobian@gentoo.org>2005-11-09 21:55:54 +0000
commitdf1e5a24b6e02f7b5a7203e053ae290c37ab5383 (patch)
treeed64174966a291c58c89238beaa8ad56bdda23a1 /media-gfx/graphviz/files
parentMissing dep (diff)
downloadgentoo-2-df1e5a24b6e02f7b5a7203e053ae290c37ab5383.tar.gz
gentoo-2-df1e5a24b6e02f7b5a7203e053ae290c37ab5383.tar.bz2
gentoo-2-df1e5a24b6e02f7b5a7203e053ae290c37ab5383.zip
Define 'environ' so linking actually succeeds on OSX (bug #111504)
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'media-gfx/graphviz/files')
-rw-r--r--media-gfx/graphviz/files/graphviz-2.6-macos.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/media-gfx/graphviz/files/graphviz-2.6-macos.patch b/media-gfx/graphviz/files/graphviz-2.6-macos.patch
new file mode 100644
index 000000000000..e42d31f12170
--- /dev/null
+++ b/media-gfx/graphviz/files/graphviz-2.6-macos.patch
@@ -0,0 +1,16 @@
+diff -Naur graphviz-2.6-orig/lib/ast/pathpath.c graphviz-2.6/lib/ast/pathpath.c
+--- graphviz-2.6-orig/lib/ast/pathpath.c 2005-10-30 15:15:30.000000000 +0100
++++ graphviz-2.6/lib/ast/pathpath.c 2005-10-30 15:16:20.000000000 +0100
+@@ -33,7 +33,12 @@
+ #include <unistd.h>
+
+ /* #include <option.h> */
++#ifdef __APPLE__
++#include <crt_externs.h>
++#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)