Ver código fonte

Fixed compilation of the mapcache builder under linux

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10015 54d463be-8e91-2dee-dedb-b68131a5f0ec
toms 18 anos atrás
pai
commit
4bd5a67388
3 arquivos alterados com 4 adições e 1 exclusões
  1. 2 1
      src/tool/Makefile
  2. 1 0
      src/tool/convert.c
  3. 1 0
      src/tool/grfio.c

+ 2 - 1
src/tool/Makefile

@@ -8,7 +8,8 @@ convert:
 
 mapcache:
 	$(MAKE) -C ../zlib
-	$(CC) -o ../../$@ mapcache.c ../zlib/unz.o
+	$(CC) -c -o grfio.o grfio.c
+	$(CC) -o ../../$@ mapcache.c grfio.o ../zlib/unz.o -lz
 
 clean:
 	rm -rf ../../tools/adduser ../../tools/convert ../../mapcache

+ 1 - 0
src/tool/convert.c

@@ -3,6 +3,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #define RETCODE	"\r\n"
 

+ 1 - 0
src/tool/grfio.c

@@ -42,6 +42,7 @@
 	#ifndef __FREEBSD__
 		#include <zlib.h>
 	#endif
+	#define strcmpi strcasecmp
 #endif
 
 typedef	unsigned char	BYTE;