1From 2a12174a5059e84d4ff6fad8f983a4d0f2127e73 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 Aug 2020 12:17:31 -0700
4Subject: [PATCH] tftp: Mark toplevel definition as external
5
6Fixes
7multiple definition of `toplevel'; tftp.o:/usr/src/debug/tftp-hpa/5.2-r0/tftp-hpa-5.2/tftp/tftp.c:51: first defined here
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 tftp/tftp.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/tftp/tftp.c b/tftp/tftp.c
16index 9d15022..109848c 100644
17--- a/tftp/tftp.c
18+++ b/tftp/tftp.c
19@@ -48,7 +48,7 @@ extern int maxtimeout;
20 #define PKTSIZE    SEGSIZE+4
21 char ackbuf[PKTSIZE];
22 int timeout;
23-sigjmp_buf toplevel;
24+extern sigjmp_buf toplevel;
25 sigjmp_buf timeoutbuf;
26
27 static void nak(int, const char *);
28--
292.28.0
30
31