| 1 | Descriptionscip-debian debian lincity 1.13.1-17 lincity/patches/fix-implicit-declarations-823432#Description.: Fix implicit declaration of function warnings |
| 2 | This patch fixes the FTBFS bug. Also fixes a crash bug on 64-bits systems. |
| 3 | Authorscip-debian debian lincity 1.13.1-17 lincity/patches/fix-implicit-declarations-823432#Author.: Ying-Chun Liu (PaulLiu) <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 4 | Last-Updatescip-debian debian lincity 1.13.1-17 lincity/patches/fix-implicit-declarations-823432#Last-Update.: 2016-05-05 |
| 5 | Index: lincity-1.13.1/main.cscip-debian debian lincity 1.13.1-17 lincity/upstream/`lincity-1.13.1/main.c`: |
| 6 | =================================================================== |
| 7 | --- lincity-1.13.1.orig/main.cscip-debian debian lincity 1.13.1-17 lincity/upstream/`lincity-1.13.1.orig/main.c`: |
| 8 | +++ lincity-1.13.1/main.c |
| 9 | @@ -41,6 +41,10 @@ |
| 10 | #include <lcx11.h> |
| 11 | #endif |
| 12 | |
| 13 | +#if !defined(WIN32) |
| 14 | +#include <locale.h> |
| 15 | +#endif |
| 16 | + |
| 17 | #include "lctypes.h" |
| 18 | #include "lin-city.h" |
| 19 | #include "cliglobs.h" |
| 20 | Index: lincity-1.13.1/readpng.cscip-debian debian lincity 1.13.1-17 lincity/upstream/`lincity-1.13.1/readpng.c`: |
| 21 | =================================================================== |
| 22 | --- lincity-1.13.1.orig/readpng.cscip-debian debian lincity 1.13.1-17 lincity/upstream/`lincity-1.13.1.orig/readpng.c`: |
| 23 | +++ lincity-1.13.1/readpng.c |
| 24 | @@ -3,6 +3,7 @@ |
| 25 | * This file is part of lincity (see COPYRIGHT for copyright information). |
| 26 | * ---------------------------------------------------------------------- */ |
| 27 | #include <stdlib.h> |
| 28 | +#include <string.h> |
| 29 | #include "png.h" |
| 30 | #include "malloc.h" |
| 31 | #include "lin-city.h" |