1
0
mirror of synced 2026-03-09 12:31:40 +00:00

make libnetpbm import work on Ubuntu/Debian (upstream #1)

Deal with Debian/Ubuntu's version of libnetpbm10-dev.

See upstream issue #1
This commit is contained in:
Phil Pemberton
2020-05-26 18:31:19 +01:00
parent 986047af9b
commit 8827eb886c
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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