summaryrefslogtreecommitdiff
blob: ddede6970c94c04661e85d07e7b40591def2ce33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- src/Makefile.am.old	2011-05-19 07:58:50.128783975 +0200
+++ src/Makefile.am	2011-05-19 07:58:55.639128359 +0200
@@ -8,7 +8,7 @@
 powermanga_CFLAGS = -DPREFIX=\"$(prefix)\" \
                     -DSCOREFILE=\"$(scoredir)/$(score)\" \
                     @XLIB_CFLAGS@ @SDL_CFLAGS@ 
-powermanga_LDADD = @XLIB_LIBS@ @SDL_LIBS@
+powermanga_LDADD = @XLIB_LIBS@ @SDL_LIBS@ -lm
 
 install-data-hook:
 	-chown root:games "$(DESTDIR)/$(gamesdir)/powermanga"
--- src/images.c
+++ src/images.c
@@ -31,6 +31,7 @@
 #include "display.h"
 #include "images.h"
 #include "log_recorder.h"
+#include <zlib.h>
 
 static char *bitmap_read (bitmap * bmp, Uint32 num_of_obj,
                           Uint32 num_of_images, char *addr,