mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-05 07:50:42 +02:00
Fix include paths for LZO headers
lzo2's pkg-config file has always specified "Cflags: -I${includedir}/lzo".
Including <lzo/lzo2a.h> happens to work if ${includedir} is already on the
header search path, e.g. it's /usr/include. However, if lzo2 is in an
unusual location and we're depending on pkg-config to tell us where it is,
we'll end up looking for ${includedir}/lzo/lzo/lzo2a.h and failing the
build:
util/cairo-script/cairo-script-file.c:45:10: fatal error: 'lzo/lzo2a.h' file not found
Fix the include paths.
This commit is contained in:
parent
39ba22d7e6
commit
9735309da6
3 changed files with 3 additions and 3 deletions
|
|
@ -42,7 +42,7 @@
|
|||
#include <zlib.h>
|
||||
|
||||
#if HAVE_LZO
|
||||
#include <lzo/lzo2a.h>
|
||||
#include <lzo2a.h>
|
||||
#endif
|
||||
|
||||
#define CHUNK_SIZE 32768
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
#endif
|
||||
|
||||
#if HAVE_LZO
|
||||
#include <lzo/lzo2a.h>
|
||||
#include <lzo2a.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
#include <zlib.h>
|
||||
|
||||
#if HAVE_LZO
|
||||
#include <lzo/lzo2a.h>
|
||||
#include <lzo2a.h>
|
||||
#endif
|
||||
|
||||
#define DEBUG_SCAN 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue