Skip to content

Commit

Permalink
Fix Linux build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeex committed Aug 29, 2014
1 parent 030be73 commit dda49fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion source/compiler/pawndisasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dda49fb

Please sign in to comment.