From b6a1c0253a525a2dab0e752dae1947019d55688c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=B6=E9=B3=96=E5=A4=A7=E5=B8=9D?= Date: Thu, 21 Jan 2021 16:20:06 +0800 Subject: [PATCH] Fix ld: multiple definition of `random_data_flag' Upstream solution: https://github.com/schweikert/fping/issues/166#issuecomment-581100782 --- linux/src/fping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/src/fping.h b/linux/src/fping.h index 44be999..232e7ea 100644 --- a/linux/src/fping.h +++ b/linux/src/fping.h @@ -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();