diff options
author | David Seifert <soap@gentoo.org> | 2020-08-08 18:53:21 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-08-08 18:53:21 +0200 |
commit | 65a5ee694c109ad023cd722eae95deddf5c03b90 (patch) | |
tree | 8e8349262b03dace7332874880516c554586c0a4 /media-sound/chordii/files | |
parent | media-sound/chordii: Remove old (diff) | |
download | gentoo-65a5ee694c109ad023cd722eae95deddf5c03b90.tar.gz gentoo-65a5ee694c109ad023cd722eae95deddf5c03b90.tar.bz2 gentoo-65a5ee694c109ad023cd722eae95deddf5c03b90.zip |
media-sound/chordii: Fix building under -fno-common
Closes: https://bugs.gentoo.org/706460
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/chordii/files')
-rw-r--r-- | media-sound/chordii/files/chordii-4.5.3-fno-common.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/media-sound/chordii/files/chordii-4.5.3-fno-common.patch b/media-sound/chordii/files/chordii-4.5.3-fno-common.patch new file mode 100644 index 000000000000..914a532252cd --- /dev/null +++ b/media-sound/chordii/files/chordii-4.5.3-fno-common.patch @@ -0,0 +1,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; |