fping/gcc-10.patch
linjiaxin 625176f910 fix build error due to gcc 10
error:
/usr/bin/ld: fping-socket4.o:/home/abuild/rpmbuild/BUILD/fping-4.2/src/fping.h:14: multiple definition of `random_data_flag'; fping-fping.o:/home/abuild/rpmbuild/BUILD/fping-4.2/src/fping.h:14: first defined here
2021-08-03 21:28:40 +08:00

12 lines
355 B
Diff

--- a/src/fping.h 2021-08-03 15:44:55.282990658 +0800
+++ b/src/fping.h 2021-08-03 15:45:15.519338280 +0800
@@ -11,7 +11,7 @@
void crash_and_burn( char *message );
void errno_crash_and_burn( char *message );
int in_cksum( unsigned short *p, int n );
-int random_data_flag;
+extern int random_data_flag;
/* socket.c */
int open_ping_socket_ipv4();