From 89cdef0859259fdea0165b0d3918777d1ed42955 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 12 Jun 2023 23:17:49 +0200 Subject: libsquashfs: Add sqfs_open_native_file function Having a function to interpret the flags and open a native file handle simplifies the istream/ostream/file code which shares that decoding part, particularly on windows where the character set needs to be transformed. Signed-off-by: David Oberhollenzer --- lib/util/Makemodule.am | 2 +- lib/util/test/str_table.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/util') diff --git a/lib/util/Makemodule.am b/lib/util/Makemodule.am index 0a0e50e..a797930 100644 --- a/lib/util/Makemodule.am +++ b/lib/util/Makemodule.am @@ -34,7 +34,7 @@ endif noinst_LIBRARIES += libutil.a test_str_table_SOURCES = lib/util/test/str_table.c -test_str_table_LDADD = libutil.a libio.a libcompat.a +test_str_table_LDADD = libio.a libsquashfs.la libutil.a libcompat.a test_str_table_CPPFLAGS = $(AM_CPPFLAGS) -DTESTPATH=$(top_srcdir)/lib/util/test test_rbtree_SOURCES = lib/util/test/rbtree.c diff --git a/lib/util/test/str_table.c b/lib/util/test/str_table.c index 5408fc0..75658ef 100644 --- a/lib/util/test/str_table.c +++ b/lib/util/test/str_table.c @@ -7,6 +7,7 @@ #include "config.h" #include "util/str_table.h" +#include "io/istream.h" #include "io/file.h" #include "compat.h" #include "util/test.h" -- cgit v1.2.3