openwrt-packages/net/hping3/patches/191_fix_ftbfs_with_gcc10.patch

15 lines
401 B
Diff

Description: Fixes declaration of global variable
Author: Marcio de Souza Oliveira <marciosouza@debian.org>
Last-Update: 2020-09-02
--- a/hping2.h
+++ b/hping2.h
@@ -357,7 +357,7 @@ struct delaytable_element {
int status;
};
-volatile struct delaytable_element delaytable[TABLESIZE];
+extern volatile struct delaytable_element delaytable[TABLESIZE];
/* protos */
void nop(void); /* nop */