Skip to content

Commit

Permalink
Merge pull request #4 from philpem/fix-libnetpbm
Browse files Browse the repository at this point in the history
make libnetpbm import work on Ubuntu/Debian (upstream #1)
  • Loading branch information
brouhaha authored May 26, 2020
2 parents 986047a + 8827eb8 commit f9bd928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
CTL_LANG=1


CFLAGS = -Wall -Wno-unused-function -Wno-unused-but-set-variable
CFLAGS = -Wall -Wno-unused-function -Wno-unused-but-set-variable -I/usr/include/netpbm
LDFLAGS =
LDLIBS = -ltiff -ljpeg -lnetpbm -lz -lm

Expand Down
3 changes: 2 additions & 1 deletion tumble_pbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#include <stdlib.h>
#include <strings.h> /* strcasecmp() is a BSDism */

#include <netpbm/pbm.h>
#define HAVE_BOOL 1
#include <pbm.h>
/*
* pbm_readpbmrow_packed always uses big-endian bit ordering.
* On little-endian processors (such as the x86), we want little-endian
Expand Down

0 comments on commit f9bd928

Please sign in to comment.