Description: Fix implicit declaration of function warnings This patch fixes the FTBFS bug. Also fixes a crash bug on 64-bits systems. Author: Ying-Chun Liu (PaulLiu) Last-Update: 2016-05-05 Index: lincity-1.13.1/main.c =================================================================== --- lincity-1.13.1.orig/main.c +++ lincity-1.13.1/main.c @@ -41,6 +41,10 @@ #include #endif +#if !defined(WIN32) +#include +#endif + #include "lctypes.h" #include "lin-city.h" #include "cliglobs.h" Index: lincity-1.13.1/readpng.c =================================================================== --- lincity-1.13.1.orig/readpng.c +++ lincity-1.13.1/readpng.c @@ -3,6 +3,7 @@ * This file is part of lincity (see COPYRIGHT for copyright information). * ---------------------------------------------------------------------- */ #include +#include #include "png.h" #include "malloc.h" #include "lin-city.h"