diff --git a/makefiles/Makefile.linux b/makefiles/Makefile.linux index 17614ed..ccdb1ca 100755 --- a/makefiles/Makefile.linux +++ b/makefiles/Makefile.linux @@ -61,7 +61,7 @@ sysconfigflags = -DMOTIF1_2 -DLINUX #### For Motorola SVR4: # syslibs = -lnsl -lsocket -lgen -syslibs = -lc +syslibs = -lc -lpng12 #### X include file locations -- if your platform puts the X include #### files in a strange place, set this variable appropriately. Else @@ -206,7 +206,7 @@ krblibs = $(krb4libs) $(krb5libs) #### . If you want to define the default Mosaic documentation directory #### (should be a URL), set -DDOCS_DIRECTORY_DEFAULT=\\\"url\\\" #### . Other things you can define are spelled out in src/mosaic.h. -customflags = +customflags = -lpng12 diff --git a/src/readPNG.h b/src/readPNG.h index b65dbb5..ad1d9c9 100644 --- a/src/readPNG.h +++ b/src/readPNG.h @@ -54,7 +54,7 @@ /* Author: DXP */ -#include "png.h" +#include "libpng12/png.h" unsigned char * ReadPNG(FILE *infile,int *width, int *height, XColor *colrs);