File: fix-implicit-declarations-823432

package info (click to toggle)
lincity 1.13.1-16
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 7,296 kB
  • sloc: ansic: 32,746; sh: 8,578; makefile: 584; perl: 445; yacc: 316; sed: 16
file content (31 lines) | stat: -rw-r--r-- 972 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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) <paulliu@debian.org>
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 <lcx11.h>
 #endif
 
+#if !defined(WIN32)
+#include <locale.h>
+#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 <stdlib.h>
+#include <string.h>
 #include "png.h"
 #include "malloc.h"
 #include "lin-city.h"