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:
Benjamin Gilbert 2024-09-04 22:25:07 -07:00
parent 39ba22d7e6
commit 9735309da6
3 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@
#include <zlib.h>
#if HAVE_LZO
#include <lzo/lzo2a.h>
#include <lzo2a.h>
#endif
#define CHUNK_SIZE 32768

View file

@ -60,7 +60,7 @@
#endif
#if HAVE_LZO
#include <lzo/lzo2a.h>
#include <lzo2a.h>
#endif
#ifdef HAVE_MMAP

View file

@ -46,7 +46,7 @@
#include <zlib.h>
#if HAVE_LZO
#include <lzo/lzo2a.h>
#include <lzo2a.h>
#endif
#define DEBUG_SCAN 0