0001-Use-extern-qualifier-to-fix-gcc-10.x-build.patch 790 B

1234567891011121314151617181920212223242526272829
  1. From 6f994166d8571961a08479736ae86c5baa2bb47f Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Fri, 7 Aug 2020 12:07:45 +0200
  4. Subject: [PATCH] Use "extern" qualifier to fix gcc 10.x build
  5. Patch from
  6. https://src.fedoraproject.org/rpms/tftp/raw/master/f/tftp-hpa-5.2-gcc10.patch.
  7. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  8. ---
  9. tftp/tftp.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/tftp/tftp.c b/tftp/tftp.c
  12. index d15da22..d067f96 100644
  13. --- a/tftp/tftp.c
  14. +++ b/tftp/tftp.c
  15. @@ -48,7 +48,7 @@ extern int maxtimeout;
  16. #define PKTSIZE SEGSIZE+4
  17. char ackbuf[PKTSIZE];
  18. int timeout;
  19. -sigjmp_buf toplevel;
  20. +extern sigjmp_buf toplevel;
  21. sigjmp_buf timeoutbuf;
  22. static void nak(int, const char *);
  23. --
  24. 2.26.2