Fix Linux build error

This commit is contained in:
Zeex 2014-08-29 23:19:22 +07:00
parent 030be737b5
commit dda49fbd08
2 changed files with 4 additions and 1 deletions

View File

@ -79,3 +79,6 @@ TARGET_LINK_LIBRARIES(pawncc pawnc)
# The Pawn disassembler
SET(PAWNDISASM_SRCS pawndisasm.c ../amx/amxdbg.c ../amx/amx.c)
ADD_EXECUTABLE(pawndisasm ${PAWNDISASM_SRCS})
IF(UNIX)
TARGET_LINK_LIBRARIES(pawndisasm dl)
ENDIF(UNIX)

View File

@ -484,7 +484,7 @@ static void addchars(char *str,cell value,int pos)
int main(int argc,char *argv[])
{
char name[_MAX_PATH];
char name[FILENAME_MAX];
FILE *fplist;
int codesize,count;
cell *code,*cip;