0004-fix-multiple-definition-error-when-building-with-gcc10.patch 716 B

12345678910111213141516171819202122232425
  1. From c51815b10c39c6e802bd1b56549f1d479b480fcc Mon Sep 17 00:00:00 2001
  2. From: Andrew Sun <adsun701@gmail.com>
  3. Date: Sat, 18 Jul 2020 09:11:11 -0400
  4. Subject: [PATCH] fix multiple definition error when building with gcc10
  5. [Retrieved from:
  6. https://github.com/mongrel2/mongrel2/pull/343/commits/c51815b10c39c6e802bd1b56549f1d479b480fcc]
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. ---
  9. src/unixy.h | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/src/unixy.h b/src/unixy.h
  12. index 045e7c28..4225220c 100644
  13. --- a/src/unixy.h
  14. +++ b/src/unixy.h
  15. @@ -38,7 +38,7 @@
  16. #include <bstring.h>
  17. #include <unistd.h>
  18. -char *m2program;
  19. +extern char *m2program;
  20. int Unixy_chroot(bstring path);