From 9d474f278d21ddc452d8a1a722b3735fae94115c Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 1 Jun 2022 14:21:56 +0200 Subject: Cleanup: libsqfs: sqfs_dir_reader_find_by_path Split out several repated patterns into helper functions and move the rest of the code back into dir_reader.c Signed-off-by: David Oberhollenzer --- include/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/compat.h b/include/compat.h index 65872ec..4810acb 100644 --- a/include/compat.h +++ b/include/compat.h @@ -245,4 +245,8 @@ int stfs_tools_fprintf(FILE *strm, const char *fmt, ...) PRINTF_ATTRIB(2, 3); #define putc stfs_tools_fputc #endif +#ifndef HAVE_STRCHRNUL +char *strchrnul(const char *s, int c); +#endif + #endif /* COMPAT_H */ -- cgit v1.2.3