summaryrefslogtreecommitdiff
path: root/misc/window/files/patch-main.c
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 17:40:50 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 17:40:50 +0000
commite3c468f04035ce339c44e23742399159a65be905 (patch)
tree86d567f3b04d32c210a71e6eb1f8c59d1d0dc32d /misc/window/files/patch-main.c
parentcad/calculix : update to version 2.17.1 (diff)
Fix build with -fno-common
Notes
Notes: svn path=/head/; revision=549615
Diffstat (limited to '')
-rw-r--r--misc/window/files/patch-main.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/misc/window/files/patch-main.c b/misc/window/files/patch-main.c
new file mode 100644
index 000000000000..6bd3f0963caa
--- /dev/null
+++ b/misc/window/files/patch-main.c
@@ -0,0 +1,33 @@
+--- main.c.orig 2008-07-12 06:05:22 UTC
++++ main.c
+@@ -57,6 +57,30 @@ static char rcsid[] =
+
+ #define next(a) (*++*(a) ? *(a) : (*++(a) ? *(a) : (char *)(uintptr_t)usage()))
+
++struct ww *window[NWINDOW]; /* the windows */
++struct ww *selwin; /* the selected window */
++struct ww *lastselwin; /* the last selected window */
++struct ww *cmdwin; /* the command window */
++struct ww *framewin; /* the window for framing */
++struct ww *boxwin; /* the window for the box */
++struct ww *fgwin; /* the last foreground window */
++
++struct var *alias_head;
++struct var *var_head;
++
++char *default_shell[128]; /* default shell argv */
++char *default_shellfile; /* default shell program */
++int default_nline; /* default buffer size for new windows */
++int default_smooth; /* default "smooth" parameter */
++char escapec; /* the escape character */
++
++struct timeval starttime;
++
++char quit; /* quit command issued */
++char terse; /* terse mode */
++char debug; /* debug mode */
++char incmd; /* in command mode */
++
+ /*ARGSUSED*/
+ main(argc, argv)
+ char **argv;