Skip to content

Commit

Permalink
make libnetpbm import work on Ubuntu/Debian (upstream #1)
Browse files Browse the repository at this point in the history
Deal with Debian/Ubuntu's version of libnetpbm10-dev.

See upstream issue #1
  • Loading branch information
philpem committed May 26, 2020
1 parent 986047a commit 8827eb8
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 8827eb8

Please sign in to comment.