From 8827eb886ca32bfea90144243dd1e78124809a77 Mon Sep 17 00:00:00 2001 From: Phil Pemberton Date: Tue, 26 May 2020 18:31:19 +0100 Subject: [PATCH] make libnetpbm import work on Ubuntu/Debian (upstream #1) Deal with Debian/Ubuntu's version of libnetpbm10-dev. See upstream issue #1 --- Makefile | 2 +- tumble_pbm.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1b2da77..995e07c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/tumble_pbm.c b/tumble_pbm.c index e6f09b8..5651cf4 100644 --- a/tumble_pbm.c +++ b/tumble_pbm.c @@ -28,7 +28,8 @@ #include #include /* strcasecmp() is a BSDism */ -#include +#define HAVE_BOOL 1 +#include /* * pbm_readpbmrow_packed always uses big-endian bit ordering. * On little-endian processors (such as the x86), we want little-endian