aboutsummaryrefslogtreecommitdiff
path: root/editors/xvile
diff options
context:
space:
mode:
authorGary Jennejohn <gj@FreeBSD.org>2008-02-14 11:20:30 +0000
committerGary Jennejohn <gj@FreeBSD.org>2008-02-14 11:20:30 +0000
commit48bbdaa2d449496825663879489a17bdc45f925a (patch)
tree7f6fcd6caba2b548876810a60e6d58bf5168efc2 /editors/xvile
parent02460675495bd1a07f7ad6b2a3b694d8495cca4e (diff)
downloadports-48bbdaa2d449496825663879489a17bdc45f925a.tar.gz
ports-48bbdaa2d449496825663879489a17bdc45f925a.zip
Add patch-filec.c to hopefully fix problems seen on the build machines. It
basically forces the extern char **environ; declaration to be exposed. I was unable to reproduce the reported errors on my machines without modifying a header file. But if I do that then I can build vile and xvile without errors using this patch.
Notes
Notes: svn path=/head/; revision=207194
Diffstat (limited to 'editors/xvile')
-rw-r--r--editors/xvile/files/patch-filec.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/xvile/files/patch-filec.c b/editors/xvile/files/patch-filec.c
new file mode 100644
index 000000000000..a6faea39511f
--- /dev/null
+++ b/editors/xvile/files/patch-filec.c
@@ -0,0 +1,11 @@
+--- filec.c.orig 2008-02-14 11:54:22.713522435 +0100
++++ filec.c 2008-02-14 11:55:24.224617839 +0100
+@@ -38,7 +38,7 @@
+
+ #define isDotname(leaf) (!strcmp(leaf, ".") || !strcmp(leaf, ".."))
+
+-#if defined(MISSING_EXTERN_ENVIRON) || (defined(__DJGPP__) && __DJGPP__ >= 2)
++#if defined(MISSING_EXTERN_ENVIRON) || (defined(__DJGPP__) && __DJGPP__ >= 2) || defined(__BSD_VISIBLE)
+ extern char **environ;
+ #endif
+