summaryrefslogtreecommitdiff
path: root/app-misc/vcp/files/vcp-2.2-fno-common.patch
blob: 394cbaede85036d55c5e95967eec8be79ca71086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- a/common.h
+++ b/common.h
@@ -23,8 +23,8 @@
 #define T_DIR  1 /*      -> DIR              */
 #define T_NED  2 /* DIR  -> NON-EXISTENT DIR */
 
-WINDOW *mainw;
-WINDOW *logw;
+extern WINDOW *mainw;
+extern WINDOW *logw;
 
 struct dest_new {
 	char *opath;
--- a/log.c
+++ b/log.c
@@ -13,6 +13,8 @@
 #include "screen.h"
 #include "color.h"
 
+extern WINDOW *logw;
+
 int logaddi(int code, char *base, int var, int var2) {
 	
 	if(code == LOG_VRB && !vflag)
--- a/misc.c
+++ b/misc.c
@@ -22,6 +22,8 @@
 #include "color.h"
 #include "screen.h"
 
+extern WINDOW *logw;
+
 int statit(char *path,struct stat *st,int cmdline) {
 	if(Rflag) {
 		if(pflag || ((Hflag) && !cmdline))
--- a/screen.c
+++ b/screen.c
@@ -17,6 +17,9 @@
 int winw,winh,mainww;
 int mainwsbw; /* width of status bar */
 
+WINDOW *mainw;
+WINDOW *logw;
+
 /* create windows, draw border and title */
 void scrn_draw() {
 	int dev_null;