aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorgj <gj@FreeBSD.org>2008-02-14 19:20:30 +0800
committergj <gj@FreeBSD.org>2008-02-14 19:20:30 +0800
commitd88dc04ec0c153fb374b8fec2e057691849b40ee (patch)
tree71f0d88f3d5441b963e9f17aed485cb343c337f4 /editors
parent9bb0d9524f5e3ec39436864ebadf28b9696ac109 (diff)
downloadfreebsd-ports-gnome-d88dc04ec0c153fb374b8fec2e057691849b40ee.tar.gz
freebsd-ports-gnome-d88dc04ec0c153fb374b8fec2e057691849b40ee.tar.zst
freebsd-ports-gnome-d88dc04ec0c153fb374b8fec2e057691849b40ee.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.
Diffstat (limited to 'editors')
-rw-r--r--editors/vile/files/patch-filec.c11
-rw-r--r--editors/xvile/files/patch-filec.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/editors/vile/files/patch-filec.c b/editors/vile/files/patch-filec.c
new file mode 100644
index 000000000000..a6faea39511f
--- /dev/null
+++ b/editors/vile/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
+
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
+