summaryrefslogtreecommitdiff
path: root/media-sound/chordii/files/chordii-4.5.3-fno-common.patch
blob: 914a532252cd896e5f6dbcca3c0c87c6f341cfc5 (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
--- a/src/chordii.c
+++ b/src/chordii.c
@@ -19,6 +19,8 @@
 
 static FILE *source_fd;
 
+struct kcs dummy_kcs;
+
 char
 	text_line[MAXLINE],	/* Lyrics Buffer */
 	chord[MAXTOKEN],	/* Buffer for the name of the chord */
--- a/src/chordii.h
+++ b/src/chordii.h
@@ -67,7 +67,7 @@
 #define CHORD_EASY	0
 #define CHORD_HARD	1
 
-struct kcs {
+extern struct kcs {
 	struct	kcs *next;
 	char	chord_name[CHORD_NAME_SZ];
 	int	displ;
@@ -76,7 +76,7 @@
 	int	difficult;
 	} dummy_kcs;
 
-struct chord_struct {
+typedef struct chord_struct {
 	struct chord_struct *next;
 	struct kcs *chord;
 	} dummy_chord_struct;